Mercurial > repos > public > sbplib
diff +rv/+diffops/constructSchemeDiffOp.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/constructSchemeDiffOp.m Thu Jun 27 11:04:34 2019 +0200 @@ -0,0 +1,6 @@ +function [D_scheme, penalties_scheme, D] = constructSchemeDiffOp(scheme, g, schemeOrder, schemeParams, opSet, BCs) + %% DiffOps for solution vector + [D, penalties_scheme] = rv.diffops.constructFluxDiffOpWithClosures(scheme, g, schemeOrder, schemeParams, opSet, BCs); + D2 = rv.diffops.constructSymmetricD2(g, schemeOrder, opSet); + D_scheme = @(v,Viscosity)(D(v) + D2(Viscosity)*v); +end \ No newline at end of file