diff --git a/dumux/discretization/box/elementsolution.hh b/dumux/discretization/box/elementsolution.hh index 44c90ba4b97399d21b84c7088c474ed952025dcb..6e5e27539f9223ccf848c1bf8cffb97c50844ce9 100644 --- a/dumux/discretization/box/elementsolution.hh +++ b/dumux/discretization/box/elementsolution.hh @@ -67,7 +67,10 @@ public: BoxElementSolution(const Element& element, const ElementVolumeVariables& elemVolVars, const FVElementGeometry& fvGeometry) { - update(element, elemVolVars, fvGeometry); + const auto numVert = element.subEntities(GridView::dimension); + priVars_.resize(numVert); + for (const auto& scv : scvs(fvGeometry)) + priVars_[scv.indexInElement()] = elemVolVars[scv].priVars(); } //! extract the element solution from the solution vector using a mapper @@ -90,16 +93,6 @@ public: priVars_[scv.indexInElement()] = sol[scv.dofIndex()]; } - //! extract the element solution from the elemVolVars using a local fv geometry - void update(const Element& element, const ElementVolumeVariables& elemVolVars, - const FVElementGeometry& fvGeometry) - { - const auto numVert = element.subEntities(GridView::dimension); - priVars_.resize(numVert); - for (const auto& scv : scvs(fvGeometry)) - priVars_[scv.indexInElement()] = elemVolVars[scv].priVars(); - } - //! bracket operator const access template<typename IndexType> const PrimaryVariables& operator [](IndexType i) const