Tweak PME run mode checks
commit49ca05c7a05209845609c62f122ab7313b19dd39
authorSzilárd Páll <pall.szilard@gmail.com>
Tue, 17 Apr 2018 17:51:59 +0000 (17 19:51 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Sat, 21 Apr 2018 14:12:11 +0000 (21 16:12 +0200)
tree5063a956fa0654bd25b489cf956da90c6a5ef346
parentdbe0a574f39854e6f1a0d2366bf442003ed159a1
Tweak PME run mode checks

These should allow compile-time evaluation when mdrun is compiled with
GMX_GPU=OFF.

As the CPU-only build can now optimize out quite some code, this also
fixes a gcc 7 warning that an argument of pme_gpu_reduce_outputs()
may be used uninitialized.

Change-Id: I2397e0dc7e4e2f6587d01d94db27072938e85e7d
src/gromacs/ewald/pme.h
src/gromacs/mdlib/sim_util.cpp