Mercurial > repos > public > sbplib
view +multiblock/setAllInterfaceTypes.m @ 1031:2ef20d00b386 feature/advectionRV
For easier comparison, return both the first order and residual viscosity when evaluating the residual. Add the first order and residual viscosity to the state of the RungekuttaRV time steppers
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Thu, 17 Jan 2019 10:25:06 +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