Fixed two PME issues with MPI+OpenMP
authorBerk Hess <hess@kth.se>
Fri, 15 Aug 2014 09:20:28 +0000 (11:20 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Thu, 28 Aug 2014 14:08:33 +0000 (16:08 +0200)
commit6ba80a267eaf246b7be6fb126d2f300322e95835
tree9c9fb1a3b57e29f3aa64f4a42ed950196722cb5c
parentf86bed5e44271e1807d95829087c454db0fe164e
Fixed two PME issues with MPI+OpenMP

Change 272736bc partially fixed #1388, but broke the more general
case of multiple MPI communication pulses in PME. Change 272736bc
incorrectly changed tx1 and ty1. This change has been reverted.

Change 27189bba fixed the incorrect PME grid reduction with multiple
thread grid overlap in y. But it broke the, much more common, case
where the y-size of the PME grid is not divisible by the domains in y.
This change, incorrectly, changed buf_my.

Now buf_my is set to the correct value, which solves both issues.

Fixes #1578.
Refs #1388 and #1572.

Change-Id: Id2d7d013a3b8cdc04eda1fb026567088a38ec81f
src/mdlib/pme.c