Mercurial > repos > public > sbplib
comparison +multiblock/setAllInterfaceTypes.m @ 1033:037f203b9bf5 feature/burgers1d
Merge with branch feature/advectioRV to utilize the +rv package
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Thu, 17 Jan 2019 10:44:12 +0100 |
parents | dd95470d4baf |
children |
comparison
equal
deleted
inserted
replaced
854:18162a0a5bb5 | 1033:037f203b9bf5 |
---|---|
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 |