diff +multiblock/setAllInterfaceTypes.m @ 934:dd95470d4baf feature/utux2D

Change from opts to type in multiblock.setAllInterfaceTypes
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 04 Dec 2018 12:37:44 +0100
parents 1c61d8fa9903
children
line wrap: on
line diff
--- a/+multiblock/setAllInterfaceTypes.m	Mon Dec 03 15:01:24 2018 -0800
+++ b/+multiblock/setAllInterfaceTypes.m	Tue Dec 04 12:37:44 2018 +0100
@@ -1,15 +1,13 @@
-% 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());
+% 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
+		for j = 1:g.nBlocks()
 			if ~isempty(g.connections{i,j})
-				optsCell{i,j} = opts;
+				intfTypes{i,j} = type;
 			end
 		end
 	end
-
-end
\ No newline at end of file
+end