Mercurial > repos > public > sbplib
diff +sbp/+implementations/d1_upwind_6.m @ 267:f7ac3cd6eeaa operator_remake
Sparsified all implementation files, removed all matlab warnings, fixed small bugs on minimum grid points.
author | Martin Almquist <martin.almquist@it.uu.se> |
---|---|
date | Fri, 09 Sep 2016 14:53:41 +0200 |
parents | bfa130b7abf6 |
children |
line wrap: on
line diff
--- a/+sbp/+implementations/d1_upwind_6.m Fri Sep 09 11:03:13 2016 +0200 +++ b/+sbp/+implementations/d1_upwind_6.m Fri Sep 09 14:53:41 2016 +0200 @@ -32,8 +32,8 @@ e_1=sparse(m,1);e_1(1)=1; e_m=sparse(m,1);e_m(m)=1; - Dp=HI*(Qp-1/2*e_1*e_1'+1/2*e_m*e_m') ; + Dp=HI*(Qp-1/2*(e_1*e_1')+1/2*(e_m*e_m')) ; - Dm=HI*(Qm-1/2*e_1*e_1'+1/2*e_m*e_m') ; + Dm=HI*(Qm-1/2*(e_1*e_1')+1/2*(e_m*e_m')) ; end