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
Merge release-5-0 into master
[alexxy/gromacs.git]
/
src
/
gromacs
/
mdlib
/
update.c
diff --git
a/src/gromacs/mdlib/update.c
b/src/gromacs/mdlib/update.c
index 3be84a8a93c697047beff45cb75b6ffa8d861312..373212ca8a07a46f49551430fd3b6d5c1d365e6f 100644
(file)
--- a/
src/gromacs/mdlib/update.c
+++ b/
src/gromacs/mdlib/update.c
@@
-1767,7
+1767,9
@@
void update_constraints(FILE *fplog,
}
else
{
}
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]);
for (i = start; i < nrend; i++)
{
copy_rvec(upd->xp[i], state->x[i]);