Commit 70c12576 authored by Timo Koch's avatar Timo Koch

Merge branch 'fix/md-box-localassembler' into 'master'

[md][box][localassembler] apply Dirichlet Bcs in residual

Closes #642

See merge request !1472
parents 52969af9 ca22b1d9
......@@ -187,6 +187,16 @@ public:
const auto residual = this->evalLocalResidual();
for (const auto& scv : scvs(this->fvGeometry()))
res[scv.dofIndex()] += residual[scv.localDofIndex()];
auto applyDirichlet = [&] (const auto& scvI,
const auto& dirichletValues,
const auto eqIdx,
const auto pvIdx)
{
res[scvI.dofIndex()][eqIdx] = this->curElemVolVars()[scvI].priVars()[pvIdx] - dirichletValues[pvIdx];
};
this->asImp_().evalDirichletBoundaries(applyDirichlet);
}
/*!
......
Markdown is supported
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