view +multiblock/setAllInterfaceTypes.m @ 1243:4e0b88f3def1 feature/dirac_discr

Use rng(1) to set seed in diracDiscrTest because hex-speak crashed.
author Martin Almquist <malmquist@stanford.edu>
date Tue, 19 Nov 2019 17:11:33 -0800
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