Mercurial > repos > public > sbplib
view +rv/+diffops/constructFluxDiffOps.m @ 1193:921595039ab8 feature/rv
Add options for postprocessing RV
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Mon, 29 Jul 2019 16:44:21 +0200 |
parents | 79618b58b0a0 |
children |
line wrap: on
line source
function [D_f, closures, penalties] = constructFluxDiffOps(scheme, g, order, schemeParams, opSet, BCs) diffOp = scheme(g, order, schemeParams{:}, opSet); if ~isa(diffOp.D, 'function_handle') D_f = @(v) diffOp.D*v; else D_f = diffOp.D; end penalties = cell(size(BCs)); closures = cell(size(BCs)); for i = 1:size(BCs,1) for j = 1:size(BCs,2) [closures{i,j}, penalties{i,j}] = diffOp.boundary_condition(BCs{i,j}.boundary, BCs{i,j}.type); end end end