Mercurial > repos > public > sbplib
comparison +multiblock/setAllInterfaceTypes.m @ 979:7a5e770974ed feature/timesteppers
Merge with default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 07 Jan 2019 16:26:00 +0100 |
parents | dd95470d4baf |
children |
comparison
equal
deleted
inserted
replaced
933:34b3d092a4d0 | 979:7a5e770974ed |
---|---|
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 |