Mercurial > repos > public > sbplib
view +multiblock/setAllInterfaceTypes.m @ 1306:633757e582e5 feature/poroelastic
Add transformation gradient as property in CurvilinearAnisotropic
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Sun, 19 Jul 2020 20:29:48 -0700 |
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