Merge release-5-0 into master
[alexxy/gromacs.git] / src / gromacs / mdlib / update.c
index 3be84a8a93c697047beff45cb75b6ffa8d861312..373212ca8a07a46f49551430fd3b6d5c1d365e6f 100644 (file)
@@ -1767,7 +1767,9 @@ void update_constraints(FILE             *fplog,
         }
         else
         {
-#pragma omp parallel for num_threads(gmx_omp_nthreads_get(emntUpdate)) schedule(static)
+            nth = gmx_omp_nthreads_get(emntUpdate);
+
+#pragma omp parallel for num_threads(nth) schedule(static)
             for (i = start; i < nrend; i++)
             {
                 copy_rvec(upd->xp[i], state->x[i]);