diff --git a/ProcessLib/Output/CachedSecondaryVariable.cpp b/ProcessLib/Output/CachedSecondaryVariable.cpp index c511a3737f6885e9d9d0f16c079a1c9ce7b349ca..f2413cb7c1f0b221d8277b5aa8a6ed716bf8d9a0 100644 --- a/ProcessLib/Output/CachedSecondaryVariable.cpp +++ b/ProcessLib/Output/CachedSecondaryVariable.cpp @@ -68,6 +68,9 @@ GlobalVector const& CachedSecondaryVariable::evalFieldNoArgs() const 1, *_extrapolatables, _t, *_current_solution, *_dof_table); auto const& nodal_values = _extrapolator.getNodalValues(); MathLib::LinAlg::copy(nodal_values, _cached_nodal_values); + + MathLib::LinAlg::setLocalAccessibleVector( + _cached_nodal_values); // For access in the getValue() _needs_recomputation = false; return nodal_values; }