Avoid race on dvdl with Verlet+OpenMP+LINCS+FE+VV
authorBerk Hess <hess@kth.se>
Wed, 26 Nov 2014 20:17:12 +0000 (21:17 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Fri, 5 Dec 2014 13:54:51 +0000 (14:54 +0100)
commit8b404bee3a923cc6e78b7f1ef2eac3b5a7008099
tree4956ba14699648a086e07cd8a0ec090fd9e0089d
parenta19ebef3a16638284d25b29e623b618beff811a8
Avoid race on dvdl with Verlet+OpenMP+LINCS+FE+VV

Also restructured the dH/dlambda reduction in do_lincs (used for
coordinates and not affected by the race issue) to work similar
do the do_lincsp code and properly use thread parallelization.
Fixes #1647.

Change-Id: I4eeb131018abca88b3635932491d99a779e16037
src/gromacs/mdlib/clincs.c