view +multiblock/local2globalClosure.m @ 867:d634d4deb263 bcSetupExperiment

More notes
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 26 Jul 2018 17:28:48 -0700
parents c51b3f945c65
children ba10f24bf476
line wrap: on
line source


% Takes the local closure for ice or water and turns it into a closure for the whole system
%   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