Commit 1cc98dd2 authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[md][localassembler] make coupling work for sol-dependent params

The flux variables cache was in a deflected state when entering
the coupling derivatives computation function. This commit restores
the undeflected state before handling derivatives.
parent 60d81a46
......@@ -465,6 +465,9 @@ public:
const auto& stencil = this->couplingManager().couplingStencil(domainI, element, domainJ);
const auto& curSolJ = this->curSol()[domainJ];
// make sure the flux variables cache does not contain any artifacts from prior differentiation
elemFluxVarsCache.update(element, fvGeometry, curElemVolVars);
// convenience lambda for call to update self
auto updateCoupledVariables = [&] ()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment