Commit 437ff0d9 authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

implicit cell-centered Dirichlet conditions: account for eqIdx != pvIdx

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@10728 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 405dc991
......@@ -215,8 +215,11 @@ protected:
for (int eqIdx = 0; eqIdx < numEq; ++eqIdx)
{
if (bcTypes.isDirichlet(eqIdx))
{
int pvIdx = bcTypes.eqToDirichletIndex(eqIdx);
this->residual_[0][eqIdx]
= this->curPriVar_(0, eqIdx) - values[eqIdx];
= this->curPriVar_(0, pvIdx) - values[pvIdx];
}
}
}
else // pure Dirichlet conditions
......
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