Commit a75c3e18 authored by Timo Koch's avatar Timo Koch
Browse files

[navierstokes][bugfix] Problem is expected to resize the solution vector in applyInitialSolution

parent 6fb0dae6
......@@ -385,6 +385,7 @@ public:
template<class SolutionVector>
void applyInitialSolution(SolutionVector& sol) const
{
sol.resize(this->gridGeometry().numDofs());
std::vector<bool> dofHandled(this->gridGeometry().numDofs(), false);
auto fvGeometry = localView(this->gridGeometry());
for (const auto& element : elements(this->gridGeometry().gridView()))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment