X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Fmdlib%2Fforce.c;h=d4e6445491e36fe2f10bff1cf360d7b6d8ae8050;hb=62518a2c1c18a34bb2d4c67a2bdea58f1669d0f8;hp=632c2f3a4664ffb00ae72262bcdcf0c6e0dd905a;hpb=971191d82b4868f520baf3ff77d0c7f09143d2bd;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/mdlib/force.c b/src/gromacs/mdlib/force.c index 632c2f3a46..d4e6445491 100644 --- a/src/gromacs/mdlib/force.c +++ b/src/gromacs/mdlib/force.c @@ -117,9 +117,11 @@ static void reduce_thread_forces(int n, rvec *f, int nthreads, f_thread_t *f_t) { int t, i; + int nthreads_loop gmx_unused; /* This reduction can run over any number of threads */ -#pragma omp parallel for num_threads(gmx_omp_nthreads_get(emntBonded)) private(t) schedule(static) + nthreads_loop = gmx_omp_nthreads_get(emntBonded); +#pragma omp parallel for num_threads(nthreads_loop) private(t) schedule(static) for (i = 0; i < n; i++) { for (t = 1; t < nthreads; t++)