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)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 11 Feb 2021 12:47:34 +0000 (12:47 +0000)
commitca1f02e7248e4e4df42a35eb400d9aef4173bcb8
tree84054490061ef2148341154be5495bc96babd7d4
parent36de31d0bac55db9c4cdb89c3aa3e6f654327025
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
src/gromacs/gmxpreprocess/readir.cpp
src/gromacs/mdrun/runner.cpp