view +multiblock/setAllInterfaceOptions.m @ 927:4291731570bb feature/utux2D

Rename AWW OP. Make Interpolation operator classes take grid points as arguments. Remove LaplCurv.interpolationOperators. Introduce default struct in LaplCurv.interface.
author Martin Almquist <malmquist@stanford.edu>
date Mon, 03 Dec 2018 14:53:52 -0800
parents 60a3bc79835a
children
line wrap: on
line source

% g: multiblock grid
% opts: struct of options
% Returns g.nBlocks x g.nBlocks cell array with all interface opts set to opts.
function optsCell = setAllInterfaceOptions(g, opts)

	optsCell = cell(g.nBlocks(), g.nBlocks());
	for i = 1:g.nBlocks()
		for j = 1:g.nBlocks
			if ~isempty(g.connections{i,j})
				optsCell{i,j} = opts;
			end
		end
	end

end