X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Fmdlib%2Fupdate.c;h=93b7f59c1ec4dc7faffce100b5b1f1f51920c478;hb=62518a2c1c18a34bb2d4c67a2bdea58f1669d0f8;hp=787135f7158cd12b23bac96a7446d7de8d8e44a7;hpb=971191d82b4868f520baf3ff77d0c7f09143d2bd;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/mdlib/update.c b/src/gromacs/mdlib/update.c index 787135f715..93b7f59c1e 100644 --- a/src/gromacs/mdlib/update.c +++ b/src/gromacs/mdlib/update.c @@ -1771,7 +1771,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]);