Mercurial > repos > public > sbplib
diff +scheme/bcSetup.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 | 5cf9fdf4c98f |
children | 006defd0247b 57760d7088ad |
line wrap: on
line diff
--- a/+scheme/bcSetup.m Thu Jul 26 17:47:21 2018 -0700 +++ b/+scheme/bcSetup.m Fri Jul 27 10:31:51 2018 -0700 @@ -28,7 +28,7 @@ [localClosure, penalty] = diffOp.boundary_condition(bcs{i}.boundary, bcs{i}.type); closure = closure + localClosure; - [ok, isSym, data] = parseData(bcs{i}, penalty, diffOp.grid) + [ok, isSym, data] = parseData(bcs{i}, penalty, diffOp.grid); if ~ok % There was no data @@ -36,9 +36,9 @@ end if isSym - gridData{end+1} = data; + symbolicData{end+1} = data; else - symbolicData{end+1} = data; + gridData{end+1} = data; end end @@ -72,14 +72,14 @@ error('bcs{%d}.data should be a function of time or a function of time and space',i); end - b = diffOp.grid.getBoundary(bc.boundart); + b = diffOp.grid.getBoundary(bcs{i}.boundary); dim = size(b,2); - if nargin(bc.data) == 1 + if nargin(bcs{i}.data) == 1 % Grid data (only function of time) - assertSize(bc.data(0), 1, size(b)); - elseif nargin(bc.data) ~= 1+dim + assertSize(bcs{i}.data(0), 1, size(b)); + elseif nargin(bcs{i}.data) ~= 1+dim error('sbplib:scheme:bcSetup:DataWrongNumberOfArguments', 'bcs{%d}.data has the wrong number of input arguments. Must be either only time or time and space.', i); end end