Mercurial > repos > public > sbplib
diff +sbp/+implementations/d2_variable_4.m @ 890:c70131daaa6e feature/d1_staggered
Merge with feature/poroelastic.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Wed, 21 Nov 2018 18:29:29 -0800 |
parents | b758d1cf4c8e |
children | e54c2f54dbfe |
line wrap: on
line diff
--- a/+sbp/+implementations/d2_variable_4.m Sun Nov 04 12:36:30 2018 -0800 +++ b/+sbp/+implementations/d2_variable_4.m Wed Nov 21 18:29:29 2018 -0800 @@ -49,7 +49,7 @@ N = m; - function D2 = D2_fun(c) + function [D2, B] = D2_fun(c) M = 78+(N-12)*5; %h = 1/(N-1); @@ -131,6 +131,8 @@ cols(40+(i-7)*5:44+(i-7)*5) = [i-2;i-1;i;i+1;i+2]; end D2 = sparse(rows,cols,D2); + + B = HI*( c(end)*e_r*d1_r' - c(1)*e_l*d1_l') - D2; end D2 = @D2_fun; end \ No newline at end of file