Mercurial > repos > public > sbplib
view +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 source
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