Mercurial > repos > public > sbplib
view +rv/+diffops/constructFluxDiffOps.m @ 1191:881afc40a3d2 feature/rv
Change to use the interpolation operators in sbplib
| author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
|---|---|
| date | Mon, 29 Jul 2019 16:43:08 +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
