From 71e2a78aeab0fc817ffacb5af13f6821fc09f726 Mon Sep 17 00:00:00 2001 From: Kilian Weishaupt <kilian.weishaupt@iws.uni-stuttgart.de> Date: Fri, 1 Dec 2017 10:14:58 +0100 Subject: [PATCH] [box][elementSolution] Remove update function --- dumux/discretization/box/elementsolution.hh | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/dumux/discretization/box/elementsolution.hh b/dumux/discretization/box/elementsolution.hh index 44c90ba4b9..6e5e27539f 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 -- GitLab