Mercurial > repos > public > sbplib
diff +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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/+rv/+diffops/constructFluxDiffOp.m Thu Jun 27 11:04:34 2019 +0200 @@ -0,0 +1,8 @@ +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 \ No newline at end of file