Skip to content
Snippets Groups Projects
Commit 71e2a78a authored by Kilian Weishaupt's avatar Kilian Weishaupt Committed by Timo Koch
Browse files

[box][elementSolution] Remove update function

parent e9529cbe
No related branches found
No related tags found
2 merge requests!621Feature/1pnc next,!617[WIP] Next
...@@ -67,7 +67,10 @@ public: ...@@ -67,7 +67,10 @@ public:
BoxElementSolution(const Element& element, const ElementVolumeVariables& elemVolVars, BoxElementSolution(const Element& element, const ElementVolumeVariables& elemVolVars,
const FVElementGeometry& fvGeometry) 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 //! extract the element solution from the solution vector using a mapper
...@@ -90,16 +93,6 @@ public: ...@@ -90,16 +93,6 @@ public:
priVars_[scv.indexInElement()] = sol[scv.dofIndex()]; 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 //! bracket operator const access
template<typename IndexType> template<typename IndexType>
const PrimaryVariables& operator [](IndexType i) const const PrimaryVariables& operator [](IndexType i) const
......
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