diff +grid/Cartesian.m @ 1071:92cb03e64ca4 feature/grids/LaplaceSquared

Merge with default
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 20 Sep 2018 12:05:20 +0200
parents 031d6db97270
children
line wrap: on
line diff
--- a/+grid/Cartesian.m	Tue Jul 24 21:08:08 2018 -0700
+++ b/+grid/Cartesian.m	Thu Sep 20 12:05:20 2018 +0200
@@ -5,6 +5,7 @@
         m % Number of points in each direction
         x % Cell array of vectors with node placement for each dimension.
         h % Spacing/Scaling
+        lim % Cell array of left and right boundaries for each dimension.
     end
 
     % General d dimensional grid with n points
@@ -27,6 +28,11 @@
             end
 
             obj.h = [];
+
+            obj.lim = cell(1,obj.d);
+            for i = 1:obj.d
+                obj.lim{i} = {obj.x{i}(1), obj.x{i}(end)};
+            end
         end
         % n returns the number of points in the grid
         function o = N(obj)