Mercurial > repos > public > sbplib
diff +multiblock/setAllInterfaceTypes.m @ 928:1c61d8fa9903 feature/utux2D
Replace opts by type everywhere
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Mon, 03 Dec 2018 15:01:24 -0800 |
parents | |
children | dd95470d4baf |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/+multiblock/setAllInterfaceTypes.m Mon Dec 03 15:01:24 2018 -0800 @@ -0,0 +1,15 @@ +% g: multiblock grid +% opts: struct of options +% Returns g.nBlocks x g.nBlocks cell array with all interface opts set to opts. +function optsCell = setAllInterfaceTypes(g, opts) + + optsCell = cell(g.nBlocks(), g.nBlocks()); + for i = 1:g.nBlocks() + for j = 1:g.nBlocks + if ~isempty(g.connections{i,j}) + optsCell{i,j} = opts; + end + end + end + +end \ No newline at end of file