Mercurial > repos > public > sbplib
comparison +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 |
comparison
equal
deleted
inserted
replaced
927:4291731570bb | 928:1c61d8fa9903 |
---|---|
1 % g: multiblock grid | |
2 % opts: struct of options | |
3 % Returns g.nBlocks x g.nBlocks cell array with all interface opts set to opts. | |
4 function optsCell = setAllInterfaceTypes(g, opts) | |
5 | |
6 optsCell = cell(g.nBlocks(), g.nBlocks()); | |
7 for i = 1:g.nBlocks() | |
8 for j = 1:g.nBlocks | |
9 if ~isempty(g.connections{i,j}) | |
10 optsCell{i,j} = opts; | |
11 end | |
12 end | |
13 end | |
14 | |
15 end |