Replace bool with enum class in DomdecOptions
authorMark Abraham <mark.j.abraham@gmail.com>
Thu, 29 Apr 2021 09:04:33 +0000 (11:04 +0200)
committerPaul Bauer <paul.bauer.q@gmail.com>
Mon, 3 May 2021 13:08:20 +0000 (13:08 +0000)
commitc0f8bc972937aed40f48d2a2051376b24fedcee3
tree7a2168b8ab7f888528eef23276fa4669cf994d85
parentfdac5efa5ed51dd9b8486ca35227708b62fb08ef
Replace bool with enum class in DomdecOptions

The logic is simpler if we just use DDBondedChecking directly in
DomdecOptions. The enum values have changed so that they match those
for the bool type. Added a test and an assertion to confirm that this
works as expected, ie the default for mdrun -ddcheck is unchanged
src/gromacs/commandline/tests/pargs.cpp
src/gromacs/domdec/domdec.cpp
src/gromacs/domdec/domdec.h
src/gromacs/domdec/domdec_topology.cpp
src/gromacs/domdec/options.h
src/gromacs/mdrun/legacymdrunoptions.h
src/gromacs/mdrun/runner.cpp