diff +grid/Cartesian.m @ 803:031d6db97270 feature/poroelastic

Add values to .lim in Cartesian
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 26 Jul 2018 18:25:10 -0700
parents 5cf9fdf4c98f
children
line wrap: on
line diff
--- a/+grid/Cartesian.m	Thu Jul 26 18:05:29 2018 -0700
+++ b/+grid/Cartesian.m	Thu Jul 26 18:25:10 2018 -0700
@@ -28,7 +28,11 @@
             end
 
             obj.h = [];
-            obj.lim = [];
+
+            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)