diff --git a/src/mesh/MeshSmoother.cpp b/src/mesh/MeshSmoother.cpp index 26185119cabc479baf9e8f8825cef1f1147060a9..befa5cdf109991c155cf4d13048e8e702629aa24 100644 --- a/src/mesh/MeshSmoother.cpp +++ b/src/mesh/MeshSmoother.cpp @@ -282,8 +282,8 @@ class MeshSmootherHandler::MeshSmoother is_displaced.fill(false); for (size_t i_zone = 0; i_zone < discrete_function_variant_list.size(); ++i_zone) { - auto is_zone_cell = - discrete_function_variant_list[i_zone]->get<const DiscreteFunctionP0<Dimension, const double>>(); + auto is_zone_cell = discrete_function_variant_list[i_zone]->get<DiscreteFunctionP0<Dimension, const double>>(); + parallel_for( m_given_mesh.numberOfNodes(), PUGS_LAMBDA(const NodeId node_id) { auto node_cell_list = node_to_cell_matrix[node_id];