Mercurial > repos > public > sbplib
diff +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 |
line wrap: on
line diff
--- a/+grid/Cartesian.m Sun Nov 04 12:36:30 2018 -0800 +++ b/+grid/Cartesian.m Wed Nov 21 18:29:29 2018 -0800 @@ -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)