biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid using function calls in OpenMP directives
[alexxy/gromacs.git]
/
src
/
gromacs
/
mdlib
/
force.c
diff --git
a/src/gromacs/mdlib/force.c
b/src/gromacs/mdlib/force.c
index 632c2f3a4664ffb00ae72262bcdcf0c6e0dd905a..d4e6445491e36fe2f10bff1cf360d7b6d8ae8050 100644
(file)
--- 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, f_thread_t *f_t)
{
int t, i;
+ int nthreads_loop gmx_unused;
/* This reduction can run over any number of threads */
/* 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++)
for (i = 0; i < n; i++)
{
for (t = 1; t < nthreads; t++)