Skip to content
Snippets Groups Projects
Commit 4bb2a586 authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[box] only call volvar bracket operator with scv from core classes

parent 9bd67823
No related branches found
No related tags found
1 merge request!922Fix/box elemvolvars access
...@@ -56,9 +56,10 @@ public: ...@@ -56,9 +56,10 @@ public:
static const Scalar upwindWeight = getParam<Scalar>("Implicit.UpwindWeight"); static const Scalar upwindWeight = getParam<Scalar>("Implicit.UpwindWeight");
const auto& scvf = fluxVars.scvFace(); const auto& scvf = fluxVars.scvFace();
const auto& elemVolVars = fluxVars.elemVolVars(); const auto& insideScv = fluxVars.fvGeometry().scv(scvf.insideScvIdx());
const auto& insideVolVars = elemVolVars[scvf.insideScvIdx()]; const auto& outsideScv = fluxVars.fvGeometry().scv(scvf.outsideScvIdx());
const auto& outsideVolVars = elemVolVars[scvf.outsideScvIdx()]; const auto& insideVolVars = fluxVars.elemVolVars()[insideScv];
const auto& outsideVolVars = fluxVars.elemVolVars()[outsideScv];
if (std::signbit(flux)) // if sign of flux is negative if (std::signbit(flux)) // if sign of flux is negative
return flux*(upwindWeight*upwindTerm(outsideVolVars) return flux*(upwindWeight*upwindTerm(outsideVolVars)
......
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