comparison +multiblock/setAllInterfaceTypes.m @ 1072:6468a5f6ec79 feature/grids/LaplaceSquared

Merge with default
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 12 Feb 2019 17:12:42 +0100
parents dd95470d4baf
children
comparison
equal deleted inserted replaced
1071:92cb03e64ca4 1072:6468a5f6ec79
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