Fix hypothetical PME race condition 79/4679/1
authorJim Phillips <jim@ks.uiuc.edu>
Wed, 10 Oct 2018 05:09:51 +0000 (00:09 -0500)
committerJim Phillips <jim@ks.uiuc.edu>
Wed, 10 Oct 2018 05:09:51 +0000 (00:09 -0500)
commitd6edd0c1a05cbac3b89f4e8bd29d73d1d5ffd972
treed72291ac3c249aa925b3ed011f67ca1b72a92d5f
parent9448bec24b166718c3541944a572101da20e9c70
Fix hypothetical PME race condition

In PmeZPencil::send_all_ungrid using CkLoop if the pencil's
home PE does not wait for the helper PEs to finish sending
it could in theory receive incoming data for the next step
and overwrite the charge/potential grid before it was sent.
This would be very unlikely, but it was triggering a recently
added bug check because hasData was being reset to 0 by the
host PE before being checked by the helper PEs.

Change-Id: I4ec7b22ae4f3035c1328498a2cc8f5c4665171c5
src/ComputePme.C