Mercurial > repos > public > sbplib
changeset 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 | e3d963997527 |
children | 1f1d2a271d61 |
files | +grid/Cartesian.m |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
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)