comparison +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
comparison
equal deleted inserted replaced
967:368a2773f78b 968:a4ad90b37998
1 % Create interface configuration with a single type for all interfaces
2 % g -- multiblock grid
3 % type -- type for all interfaces
4 function intfTypes = setAllInterfaceTypes(g, type)
5 intfTypes = cell(g.nBlocks(), g.nBlocks());
6 for i = 1:g.nBlocks()
7 for j = 1:g.nBlocks()
8 if ~isempty(g.connections{i,j})
9 intfTypes{i,j} = type;
10 end
11 end
12 end
13 end