Skip to content
Snippets Groups Projects
Commit 5c45ec10 authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[staggered][model] Fix elementSolution

* use integral_constant instead of int in order to access the whole
  cell-center related privars vector
parent c0230eda
No related branches found
No related tags found
Loading
...@@ -270,10 +270,17 @@ public: ...@@ -270,10 +270,17 @@ public:
} }
} }
/*!
* \brief Returns the element solution
*
* \param element The element
* \param sol The solution vector
* \NOTE: Only returns cell-center related values. Might be revised if face data are needed as well.
*/
ElementSolution elementSolution(const Element& element, const SolutionVector& sol) const ElementSolution elementSolution(const Element& element, const SolutionVector& sol) const
{ {
PrimaryVariables priVars(0.0); PrimaryVariables priVars(0.0);
priVars[0] = sol[cellCenterIdx][this->elementMapper().index(element)]; priVars[cellCenterIdx] = sol[cellCenterIdx][this->elementMapper().index(element)];
return ElementSolution{std::move(priVars)}; return ElementSolution{std::move(priVars)};
} }
......
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