Mercurial > repos > public > sbplib
changeset 571:38c3da9675a5 feature/utux2D
Bug fixes in scheme.Utux
author | Martin Almquist <martin.almquist@it.uu.se> |
---|---|
date | Tue, 22 Aug 2017 13:53:31 +0200 |
parents | d4b999585af1 |
children | 4a73b2aab91f |
files | +scheme/Utux.m |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/+scheme/Utux.m Thu Jun 22 13:07:07 2017 +0200 +++ b/+scheme/Utux.m Tue Aug 22 13:53:31 2017 +0200 @@ -2,7 +2,7 @@ properties m % Number of points in each direction, possibly a vector h % Grid spacing - x % Grid + grid % Grid order % Order accuracy for the approximation H % Discrete norm @@ -18,7 +18,7 @@ methods function obj = Utux(m,xlim,order,operator) - default_arg('a',1); + default_arg('operator','Standard'); %Old operators % [x, h] = util.get_grid(xlim{:},m); @@ -38,20 +38,19 @@ otherwise error('Unvalid operator') end - obj.x=ops.x; + + obj.grid=ops.x; - obj.H = ops.H; obj.Hi = ops.HI; obj.e_l = ops.e_l; obj.e_r = ops.e_r; - obj.D=obj.D1; + obj.D = -obj.D1; obj.m = m; obj.h = ops.h; obj.order = order; - obj.x = ops.x; end % Closure functions return the opertors applied to the own doamin to close the boundary