comparison +multiblock/stitchSchemes.m @ 181:419ec303e97d feature/beams

Made some local changes to stichSchemes.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 29 Feb 2016 15:40:34 +0100
parents 8eb4e39df8a5
children 437fad4a47e1
comparison
equal deleted inserted replaced
180:001239c03eb2 181:419ec303e97d
9 % each field with a parameter array that is sent to schm.boundary_condition 9 % each field with a parameter array that is sent to schm.boundary_condition
10 % 10 %
11 % Output parameters are cell arrays and cell matrices. 11 % Output parameters are cell arrays and cell matrices.
12 % 12 %
13 % Ex: [schms, D, H] = stitchSchemes(schmHand, order, schmParam, blocks, ms, conn, bound) 13 % Ex: [schms, D, H] = stitchSchemes(schmHand, order, schmParam, blocks, ms, conn, bound)
14 function [schms, D, H] = stitchSchemes(schmHand, order, schmParam, blocks, ms, conn, bound) 14 function [schms, D, H] = stitchSchemes(schmHand, order, schmParam, grids, conn, bound)
15 default_arg('schmParam',[]); 15 default_arg('schmParam',[]);
16 16
17 n_blocks = numel(blocks); 17 n_blocks = numel(grids);
18 18
19 % Creating Schemes 19 % Creating Schemes
20 for i = 1:n_blocks 20 for i = 1:n_blocks
21 if isempty(schmParam); 21 if isempty(schmParam);
22 schms{i} = schmHand(ms{i},blocks{i},order,[]); 22 schms{i} = schmHand(grids{i},order,[]);
23 elseif ~iscell(schmParam) 23 elseif ~iscell(schmParam)
24 param = schmParam(i); 24 param = schmParam(i);
25 schms{i} = schmHand(ms{i},blocks{i},order,param); 25 schms{i} = schmHand(grids{i},order,param);
26 else 26 else
27 param = schmParam{i}; 27 param = schmParam{i};
28 if iscell(param) 28 if iscell(param)
29 schms{i} = schmHand(ms{i},blocks{i},order,param{:}); 29 schms{i} = schmHand(grids{i},order,param{:});
30 else 30 else
31 schms{i} = schmHand(ms{i},blocks{i},order,param); 31 schms{i} = schmHand(grids{i},order,param);
32 end 32 end
33 end 33 end
34 34
35 % class(schmParam) 35 % class(schmParam)
36 % class(ms) 36 % class(ms)