Improved some logic in do_force
commit58fb49a1566733dc079fe6563e4d85c58d68d659
authorMark Abraham <mark.j.abraham@gmail.com>
Mon, 27 Apr 2020 12:08:49 +0000 (27 12:08 +0000)
committerM. Eric Irrgang <mei2n@virginia.edu>
Mon, 27 Apr 2020 12:08:49 +0000 (27 12:08 +0000)
tree50062960fb3a0ea1b8a8c5b0bb5dcdc5af4b8772
parentbab9d2532a8d03c7cddde41d478ad4b8c938e435
Improved some logic in do_force

This helps the analyzer to understand that it should not just assume
that stateGpu can be a nullptr. The new logic is equivalent to
that for constructing stateGpu.

Removed the GMX_MPI preprocessing, which is less robust than plain
logic and probably contributed to using the wrong logic to construct
localXReadyOnDevice
src/gromacs/domdec/domdec_topology.cpp
src/gromacs/math/densityfittingforce.cpp
src/gromacs/mdlib/sim_util.cpp
src/gromacs/taskassignment/resourcedivision.cpp