Add haveCpuLocalForces flag to DomainLifetimeWorkload
authorArtem Zhmurov <zhmurov@gmail.com>
Tue, 22 Oct 2019 18:30:22 +0000 (20:30 +0200)
committerSzilárd Páll <pall.szilard@gmail.com>
Mon, 28 Oct 2019 16:49:38 +0000 (17:49 +0100)
commit6ecc09b00ff348aeafb9a230ad0b694907de4902
tree964d203c1f28d692e0e3ed9fd41d88d96d8f6b42
parent2e4259ae7c3f011b30fb03f14b3b9426ce39e088
Add haveCpuLocalForces flag to DomainLifetimeWorkload

The flag haveCpuLocalForces is moved to DomainLifetimeWorkload.
The name and meaning is also slightly changed, haveCpuLocalForceWork
now now indicates whether any forces in the local domain are computed
on the CPU.
Consequently, the currently redundant PME f reduction conditional has
been removed from the haveCpuLocalForceWork initialization. The
relationship between local force work and existence of local forces on
the CPU however needs to be clarified in relationship to #3160 and how
the PP-PME direct communication is improved/simplified.

Change-Id: Idaed4da41bf5b72435c47bab8aeb7130b36b03c7
src/gromacs/mdlib/sim_util.cpp
src/gromacs/mdtypes/simulation_workload.h