Commit ae6857f6 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

Merge branch 'fix/global-caching-compositional-models' into 'next'

Fix/global caching compositional models

See merge request !307
parents 68ea94ee 6384c837
......@@ -172,10 +172,10 @@ public:
auto dofIdxGlobal = scv.dofIndex();
if (priVarSwitch_().wasSwitched(dofIdxGlobal))
{
this->nonConstCurGlobalVolVars().volVars(dofIdxGlobal).update(this->curSol()[dofIdxGlobal],
this->problem_(),
element,
scv);
this->nonConstCurGlobalVolVars().volVars(scv.index()).update(this->curSol()[dofIdxGlobal],
this->problem_(),
element,
scv);
}
}
}
......
......@@ -184,10 +184,10 @@ public:
auto dofIdxGlobal = scv.dofIndex();
if (priVarSwitch_().wasSwitched(dofIdxGlobal))
{
this->nonConstantCurGlobalVolVars()[dofIdxGlobal].update(this->curSol()[dofIdxGlobal],
this->problem_(),
element,
scv);
this->nonConstCurGlobalVolVars().volVars(scv.index()).update(this->curSol()[dofIdxGlobal],
this->problem_(),
element,
scv);
}
}
......
......@@ -179,10 +179,10 @@ public:
auto dofIdxGlobal = scv.dofIndex();
if (priVarSwitch_().wasSwitched(dofIdxGlobal))
{
this->nonConstCurGlobalVolVars().volVars(dofIdxGlobal).update(this->curSol()[dofIdxGlobal],
this->problem_(),
element,
scv);
this->nonConstCurGlobalVolVars().volVars(scv.index()).update(this->curSol()[dofIdxGlobal],
this->problem_(),
element,
scv);
}
}
}
......
......@@ -169,10 +169,11 @@ public:
auto dofIdxGlobal = scv.dofIndex();
if (priVarSwitch_().wasSwitched(dofIdxGlobal))
{
this->nonConstantCurGlobalVolVars()[dofIdxGlobal].update(this->curSol()[dofIdxGlobal],
this->problem_(),
element,
scv);
this->nonConstCurGlobalVolVars().volVars(scv.index()).update(this->curSol()[dofIdxGlobal],
this->problem_(),
element,
scv);
}
}
......
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