Commit 846dcdab authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

ARF layout: position update must be inside a #pragma critical block

parent e676dfc3
...@@ -106,6 +106,7 @@ struct get_arf_layout ...@@ -106,6 +106,7 @@ struct get_arf_layout
} }
} }
#pragma omp critical
for (size_t j = 0; j < dim; ++j) for (size_t j = 0; j < dim; ++j)
{ {
pos[v][j] += dt*delta_pos[j]; pos[v][j] += dt*delta_pos[j];
......
Markdown is supported
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