Skip to content
Snippets Groups Projects
Commit c5f6ba07 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[box][localassembler] flux var caches don't need to be updated for box

in the box scheme, no solution dependent quantities are cached in the
flux variables cache.
parent cfb05cb6
No related branches found
No related tags found
1 merge request!734Feature/improve fvassembler
...@@ -207,7 +207,6 @@ public: ...@@ -207,7 +207,6 @@ public:
const auto& fvGeometry = this->fvGeometry(); const auto& fvGeometry = this->fvGeometry();
const auto& curSol = this->curSol(); const auto& curSol = this->curSol();
auto&& curElemVolVars = this->curElemVolVars(); auto&& curElemVolVars = this->curElemVolVars();
auto&& elemFluxVarsCache = this->elemFluxVarsCache();
// get the vecor of the acutal element residuals // get the vecor of the acutal element residuals
const auto origResiduals = this->evalLocalResidual(); const auto origResiduals = this->evalLocalResidual();
...@@ -241,19 +240,9 @@ public: ...@@ -241,19 +240,9 @@ public:
auto evalResiduals = [&](Scalar priVar) auto evalResiduals = [&](Scalar priVar)
{ {
// auto partialDerivsTmp = partialDerivs; // update the volume variables and compute element residual
// update the volume variables and the flux var cache
elemSol[scv.indexInElement()][pvIdx] = priVar; elemSol[scv.indexInElement()][pvIdx] = priVar;
curVolVars.update(elemSol, this->problem(), element, scv); curVolVars.update(elemSol, this->problem(), element, scv);
// if (enableGridFluxVarsCache)
// gridVariables.gridFluxVarsCache().updateElement(element, fvGeometry, curElemVolVars);
// else
// elemFluxVarsCache.update(element, fvGeometry, curElemVolVars);
//TODO: fluxvar caches!
//
return this->evalLocalResidual(); return this->evalLocalResidual();
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment