diff +multiblock/setAllInterfaceTypes.m @ 968:a4ad90b37998 feature/poroelastic

Merge with default.
author Martin Almquist <malmquist@stanford.edu>
date Sun, 23 Dec 2018 14:39:31 +0100
parents dd95470d4baf
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/+multiblock/setAllInterfaceTypes.m	Sun Dec 23 14:39:31 2018 +0100
@@ -0,0 +1,13 @@
+% 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()
+			if ~isempty(g.connections{i,j})
+				intfTypes{i,j} = type;
+			end
+		end
+	end
+end