Mercurial > repos > public > sbplib
comparison +multiblock/setAllInterfaceTypes.m @ 955:92c3c170e90b
Merged in feature/utux2D (pull request #11)
Feature/utux2D
Approved-by: Jonatan Werpers <jonatan.werpers@it.uu.se>
Approved-by: Martin Almquist <malmquist@stanford.edu>
Approved-by: Vidar Stiernström <vidar.stiernstrom@it.uu.se>
author | Jonatan Werpers <jonatan.werpers@it.uu.se> |
---|---|
date | Mon, 10 Dec 2018 08:29:41 +0000 |
parents | dd95470d4baf |
children |
comparison
equal
deleted
inserted
replaced
951:a6c5e73ff44e | 955:92c3c170e90b |
---|---|
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 |