Rework state checkpoint enum handling
authorPaul Bauer <paul.bauer.q@gmail.com>
Wed, 24 Feb 2021 17:05:57 +0000 (17:05 +0000)
committerPaul Bauer <paul.bauer.q@gmail.com>
Wed, 24 Feb 2021 17:05:57 +0000 (17:05 +0000)
commitefba3913be46fec6f78742d83d770e7d8a12b0ff
treea2fb3dbb9e7fd0db95cc362cecd3214097ac6bbb
parent177e8e3ab38b642224a64486a40789f6e4051f22
Rework state checkpoint enum handling

The state enumerations have been changed to enum classes and enumeration
arrays. This was required by clang-tidy to remove the global available char
arrays.

Added templated function to convert enum to underlying int.

Was able to simplify quite a lot of the checkpoint handling that had to
work around the pure ints used before the enumerations to get the
correct names for the entries.
18 files changed:
src/gromacs/domdec/collect.cpp
src/gromacs/domdec/distribute.cpp
src/gromacs/domdec/partition.cpp
src/gromacs/domdec/redistribute.cpp
src/gromacs/fileio/checkpoint.cpp
src/gromacs/fileio/tpxio.cpp
src/gromacs/gmxpreprocess/grompp.cpp
src/gromacs/listed_forces/disre.cpp
src/gromacs/listed_forces/orires.cpp
src/gromacs/mdlib/broadcaststructs.cpp
src/gromacs/mdlib/md_support.cpp
src/gromacs/mdlib/update.cpp
src/gromacs/mdrun/md.cpp
src/gromacs/mdrun/minimize.cpp
src/gromacs/mdrun/runner.cpp
src/gromacs/mdtypes/state.cpp
src/gromacs/mdtypes/state.h
src/gromacs/modularsimulator/statepropagatordata.cpp