Mercurial > repos > public > sbplib
view +multiblock/setAllInterfaceTypes.m @ 953:2c5b9cfc3f25 feature/utux2D
Merge default into feature/utux2D
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 10 Dec 2018 09:28:40 +0100 |
parents | dd95470d4baf |
children |
line wrap: on
line source
% Create interface configuration with a single type for all interfaces % g -- multiblock grid % type -- type for all interfaces function intfTypes = setAllInterfaceTypes(g, type) intfTypes = cell(g.nBlocks(), g.nBlocks()); for i = 1:g.nBlocks() for j = 1:g.nBlocks() if ~isempty(g.connections{i,j}) intfTypes{i,j} = type; end end end end