Mercurial > repos > public > sbplib
comparison +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 |
comparison
equal
deleted
inserted
replaced
1162:0ec06ca3fc36 | 1163:65a577db5ca0 |
---|---|
1 function [D_scheme, penalties_scheme, D] = constructSchemeDiffOp(scheme, g, schemeOrder, schemeParams, opSet, BCs) | |
2 %% DiffOps for solution vector | |
3 [D, penalties_scheme] = rv.diffops.constructFluxDiffOpWithClosures(scheme, g, schemeOrder, schemeParams, opSet, BCs); | |
4 D2 = rv.diffops.constructSymmetricD2(g, schemeOrder, opSet); | |
5 D_scheme = @(v,Viscosity)(D(v) + D2(Viscosity)*v); | |
6 end |