diff +rv/+diffops/constructDiffOpsBdf.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 66c0fbbc406f
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/+rv/+diffops/constructDiffOpsBdf.m	Thu Jun 27 11:04:34 2019 +0200
@@ -0,0 +1,7 @@
+function [D_scheme, D_flux, penalties_scheme] = constructDiffOpsBdf(scheme, g, schemeOrder, residualOrder, schemeParams, opSet, BCs)
+    %% DiffOps for solution vector
+    [D_scheme, penalties_scheme, ~] = rv.diffops.constructSchemeDiffOp(scheme, g, schemeOrder, schemeParams, opSet, BCs)
+    %% DiffOps for residual viscosity
+    [D_flux, ~] = rv.diffops.constructFluxDiffOp(scheme, g, order, schemeParams, opSet, BCs)
+    D_flux = @(v) -D_flux(v);
+end
\ No newline at end of file