Mercurial > repos > public > sbplib
diff +scheme/bcSetup.m @ 868:57760d7088ad bcSetupExperiment
Merge with feature/grids
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 27 Jul 2018 10:39:12 -0700 |
parents | d634d4deb263 5cf9fdf4c98f |
children | d356f1a22d4f |
line wrap: on
line diff
--- a/+scheme/bcSetup.m Thu Jul 26 17:28:48 2018 -0700 +++ b/+scheme/bcSetup.m Fri Jul 27 10:39:12 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 @@ -83,14 +83,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