annotate +multiblock/setAllInterfaceOptions.m @ 924:93a5c59dd2fb feature/utux2D

Add helper function multiblock.SetAllInterfaceOptions.
author Martin Almquist <malmquist@stanford.edu>
date Sun, 02 Dec 2018 17:25:08 -0800
parents
children 60a3bc79835a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
924
93a5c59dd2fb Add helper function multiblock.SetAllInterfaceOptions.
Martin Almquist <malmquist@stanford.edu>
parents:
diff changeset
1 % g: multiblock grid
93a5c59dd2fb Add helper function multiblock.SetAllInterfaceOptions.
Martin Almquist <malmquist@stanford.edu>
parents:
diff changeset
2 % opts: struct of options
93a5c59dd2fb Add helper function multiblock.SetAllInterfaceOptions.
Martin Almquist <malmquist@stanford.edu>
parents:
diff changeset
3 % Returns g.nBlocks x g.nBlocks cell array with all elements set to opts.
93a5c59dd2fb Add helper function multiblock.SetAllInterfaceOptions.
Martin Almquist <malmquist@stanford.edu>
parents:
diff changeset
4 function optsCell = setAllInterfaceOptions(g, opts)
93a5c59dd2fb Add helper function multiblock.SetAllInterfaceOptions.
Martin Almquist <malmquist@stanford.edu>
parents:
diff changeset
5
93a5c59dd2fb Add helper function multiblock.SetAllInterfaceOptions.
Martin Almquist <malmquist@stanford.edu>
parents:
diff changeset
6 optsCell = cell(g.nBlocks(), g.nBlocks());
93a5c59dd2fb Add helper function multiblock.SetAllInterfaceOptions.
Martin Almquist <malmquist@stanford.edu>
parents:
diff changeset
7 for i = 1:g.nBlocks()^2
93a5c59dd2fb Add helper function multiblock.SetAllInterfaceOptions.
Martin Almquist <malmquist@stanford.edu>
parents:
diff changeset
8 optsCell{i} = opts;
93a5c59dd2fb Add helper function multiblock.SetAllInterfaceOptions.
Martin Almquist <malmquist@stanford.edu>
parents:
diff changeset
9 end
93a5c59dd2fb Add helper function multiblock.SetAllInterfaceOptions.
Martin Almquist <malmquist@stanford.edu>
parents:
diff changeset
10
93a5c59dd2fb Add helper function multiblock.SetAllInterfaceOptions.
Martin Almquist <malmquist@stanford.edu>
parents:
diff changeset
11 end