Mercurial > repos > public > sbplib
view +multiblock/setAllInterfaceTypes.m @ 998:2b1b944deae1 feature/getBoundaryOp
Add getBoundaryOperator to all 1d schemes. Did not add getBoundaryQuadrature because it doesnt make sense in 1d (?)
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Sat, 12 Jan 2019 13:35:19 -0800 |
parents | dd95470d4baf |
children |
line wrap: on
line source
% Create interface configuration with a single type for all interfaces % g -- multiblock grid % type -- type for all interfaces function intfTypes = setAllInterfaceTypes(g, type) intfTypes = cell(g.nBlocks(), g.nBlocks()); for i = 1:g.nBlocks() for j = 1:g.nBlocks() if ~isempty(g.connections{i,j}) intfTypes{i,j} = type; end end end end