Mercurial > repos > public > sbplib
diff +grid/Cartesian.m @ 812:6b83dcb46f54 feature/grids
Merge with feature/poroelastic
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Fri, 27 Jul 2018 10:31:51 -0700 |
parents | 031d6db97270 |
children |
line wrap: on
line diff
--- a/+grid/Cartesian.m Thu Jul 26 17:47:21 2018 -0700 +++ b/+grid/Cartesian.m Fri Jul 27 10:31:51 2018 -0700 @@ -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)