Commit 13a465f6 authored by Dmitry Pavlov's avatar Dmitry Pavlov Committed by Timo Koch
Browse files

[bugfix] Fix PrimaryVariablesSwitch::reset()

resize() does not reset the existing values.
Use assign instead to resest all of the vector's elements.
parent 45a2ce36
Pipeline #8275 passed with stages
......@@ -72,7 +72,7 @@ public:
//! Reset all flags
void reset(const std::size_t numDofs)
wasSwitched_.resize(numDofs, false);
wasSwitched_.assign(numDofs, false);
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