comparison +grid/Cartesian.m @ 890:c70131daaa6e feature/d1_staggered

Merge with feature/poroelastic.
author Martin Almquist <malmquist@stanford.edu>
date Wed, 21 Nov 2018 18:29:29 -0800
parents 031d6db97270
children
comparison
equal deleted inserted replaced
885:18e10217dca9 890:c70131daaa6e
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