view +multiblock/local2globalClosure.m @ 1278:ce422ba8964e feature/poroelastic

Add extra input pars to multiblock/Grid.getBoundary(), to be able to use the Staggered getBoundary method
author Martin Almquist <malmquist@stanford.edu>
date Sun, 07 Jun 2020 11:28:22 -0700
parents ba10f24bf476
children
line wrap: on
line source

% Takes the block-local closures and turns it into a global closure
%   local -- The local closure
%   div   -- block matrix division for the diffOp
%   I     -- Index of blockmatrix block
function closure = local2globalClosure(local, div, I)
    closure_bm = blockmatrix.zero(div);
    closure_bm{I,I} = local;

    closure = blockmatrix.toMatrix(closure_bm);
end