changeset 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 d232483eb72f
children 8f8f5ff23ead
files +multiblock/setAllInterfaceOptions.m
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/+multiblock/setAllInterfaceOptions.m	Sun Dec 02 17:25:08 2018 -0800
@@ -0,0 +1,11 @@
+% g: multiblock grid
+% opts: struct of options
+% Returns g.nBlocks x g.nBlocks cell array with all elements set to opts.
+function optsCell = setAllInterfaceOptions(g, opts)
+
+	optsCell = cell(g.nBlocks(), g.nBlocks());
+	for i = 1:g.nBlocks()^2
+		optsCell{i} = opts;
+	end
+
+end
\ No newline at end of file