comparison +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
comparison
equal deleted inserted replaced
802:e3d963997527 803:031d6db97270
26 if obj.n == 0 26 if obj.n == 0
27 error('grid:Cartesian:EmptyGrid','Input parameter gives an empty grid.') 27 error('grid:Cartesian:EmptyGrid','Input parameter gives an empty grid.')
28 end 28 end
29 29
30 obj.h = []; 30 obj.h = [];
31 obj.lim = []; 31
32 obj.lim = cell(1,obj.d);
33 for i = 1:obj.d
34 obj.lim{i} = {obj.x{i}(1), obj.x{i}(end)};
35 end
32 end 36 end
33 % n returns the number of points in the grid 37 % n returns the number of points in the grid
34 function o = N(obj) 38 function o = N(obj)
35 o = obj.n; 39 o = obj.n;
36 end 40 end