view +multiblock/setAllInterfaceTypes.m @ 1053:6f8d2fd0d412 feature/getBoundaryOp

Close branch feature/getBoundaryOp
author Jonatan Werpers <jonatan.werpers@it.uu.se>
date Thu, 24 Jan 2019 08:29:50 +0000
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