diff --git a/dumux/discretization/box/globalfluxvariablescache.hh b/dumux/discretization/box/globalfluxvariablescache.hh index 51743e9088f8791d036acf947bbcb86aa7911311..0c6d134d46a681f5b85ce3ac741e5b98f740e7f5 100644 --- a/dumux/discretization/box/globalfluxvariablescache.hh +++ b/dumux/discretization/box/globalfluxvariablescache.hh @@ -68,10 +68,13 @@ public: auto fvGeometry = localView(problem.model().globalFvGeometry()); fvGeometry.bind(element); + auto elemVolVars = localView(problem.model().curGlobalVolVars()); + elemVolVars.bind(element, fvGeometry, problem.model().curSol()); + fluxVarsCache_[eIdx].resize(fvGeometry.numScvf()); for (auto&& scvf : scvfs(fvGeometry)) { - this->get(eIdx, scvf.index()).update(problem, element, fvGeometry, scvf); + this->get(eIdx, scvf.index()).update(problem, element, fvGeometry, elemVolVars, scvf); } } }