Disable cos acceleration for non leap-frog code paths
authorPascal Merz <pascal.merz@me.com>
Thu, 11 Feb 2021 06:23:24 +0000 (23:23 -0700)
committerPascal Merz <pascal.merz@me.com>
Thu, 25 Feb 2021 06:13:06 +0000 (23:13 -0700)
commit6c10c4466121307e5842bda207034bb7a441e384
tree4bdd70c192759e4d191dbb7e9c70b0923a0c8cf4
parent1254c21e27e27466ffb2dcf42697f4e077be5b66
Disable cos acceleration for non leap-frog code paths

The cos acceleration is only applied in leap-frog. grompp and mdrun
would, however, happily accept non-zero cos-accel input, and report
viscosity-related quantities without ever applying the acceleration
for all other integrators.

This change adds a check at grompp time (to avoid new tprs with
non-implemented parameter combinations being created), and at
runner time (to catch older tprs). Should probably be backported
to the supported releases.

Refs #3903
docs/release-notes/2020/2020.6.rst
src/gromacs/gmxpreprocess/readir.cpp
src/gromacs/mdrun/runner.cpp