diff +scheme/Beam.m @ 176:d095b5396103 feature/beams

Fixed some bugs in Beam schemes.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 29 Feb 2016 10:16:39 +0100
parents 8f22829b69d0
children 5df8d20281fe
line wrap: on
line diff
--- a/+scheme/Beam.m	Fri Feb 26 16:21:47 2016 +0100
+++ b/+scheme/Beam.m	Mon Feb 29 10:16:39 2016 +0100
@@ -22,7 +22,7 @@
             default_arg('alpha', 1);
             default_arg('opsGen', @sbp.Higher);
 
-            if ~isa(grid, 'Cartesian') || grid.D() ~= 1
+            if ~isa(grid, 'grid.Cartesian') || grid.D() ~= 1
                 error('Grid must be 1d cartesian');
             end
 
@@ -31,7 +31,7 @@
             obj.alpha = alpha;
 
             m = grid.m;
-            h = grid.spacing();
+            h = grid.scaling();
 
             ops = opsGen(m, h, order);
 
@@ -142,10 +142,10 @@
                     d3 = obj.d3_l;
                     s = -1;
                 case 'r'
-                    e  = obj.e_e;
-                    d1 = obj.d1_e;
-                    d2 = obj.d2_e;
-                    d3 = obj.d3_e;
+                    e  = obj.e_r;
+                    d1 = obj.d1_r;
+                    d2 = obj.d2_r;
+                    d3 = obj.d3_r;
                     s = 1;
                 otherwise
                     error('No such boundary: boundary = %s',boundary);