Mercurial > repos > public > sbplib
view +rv/+diffops/constructFluxDiffOp.m @ 1163:65a577db5ca0 feature/rv
Move all functions in constructDiffOps to subpackage and refactor
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Thu, 27 Jun 2019 11:04:34 +0200 |
parents | |
children |
line wrap: on
line source
function [D, diffOp] = constructFluxDiffOp(scheme, g, order, schemeParams, opSet, BCs) diffOp = scheme(g, order, schemeParams{:}, opSet); if ~isa(diffOp.D, 'function_handle') D = @(v) diffOp.D*v; else D = diffOp.D; end end