X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Fmdlib%2Fupdate.c;h=373212ca8a07a46f49551430fd3b6d5c1d365e6f;hb=19d3c2e5d0c401eb59010960d11a18b6ba2c54c6;hp=3be84a8a93c697047beff45cb75b6ffa8d861312;hpb=fe90f1c1c71a3a43a27ec9ba76e772ae54786c7f;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/mdlib/update.c b/src/gromacs/mdlib/update.c index 3be84a8a93..373212ca8a 100644 --- a/src/gromacs/mdlib/update.c +++ b/src/gromacs/mdlib/update.c @@ -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]);