Mercurial > repos > public > sbplib
view +multiblock/local2globalClosure.m @ 1037:2d7ba44340d0 feature/burgers1d
Pass scheme specific parameters as cell array. This will enabale constructDiffOps to be more general. In addition, allow for schemes returning function handles as diffOps, which is currently how non-linear schemes such as Burgers1d are implemented.
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 18 Jan 2019 09:02:02 +0100 |
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