Use optional instead of magic numbers in preprocessing
authorPaul Bauer <paul.bauer.q@gmail.com>
Tue, 2 Mar 2021 13:13:38 +0000 (13:13 +0000)
committerPaul Bauer <paul.bauer.q@gmail.com>
Tue, 2 Mar 2021 13:13:38 +0000 (13:13 +0000)
commit8acd4bc2cde050eb58932b83ad89c7e8d4c9aa0d
tree16cf7aee0f580e7543897009a349b74dcc47bbd1
parent768894fb93bb03a6972b10a8c930b1d1f64221c3
Use optional instead of magic numbers in preprocessing

Replaced the NOTUSED magic numbers in the atom type preprocessing
functions with optionals to indicate that an entry was found or not.

Needed for modernizing the particle type and pdb record type enums
further along.
16 files changed:
src/gromacs/gmxpreprocess/gen_vsite.cpp
src/gromacs/gmxpreprocess/gpp_atomtype.cpp
src/gromacs/gmxpreprocess/gpp_atomtype.h
src/gromacs/gmxpreprocess/gpp_bond_atomtype.cpp
src/gromacs/gmxpreprocess/gpp_bond_atomtype.h
src/gromacs/gmxpreprocess/grompp.cpp
src/gromacs/gmxpreprocess/nm2type.cpp
src/gromacs/gmxpreprocess/resall.cpp
src/gromacs/gmxpreprocess/ter_db.cpp
src/gromacs/gmxpreprocess/tests/gpp_atomtype.cpp
src/gromacs/gmxpreprocess/tests/gpp_bond_atomtype.cpp
src/gromacs/gmxpreprocess/tomorse.cpp
src/gromacs/gmxpreprocess/toppush.cpp
src/gromacs/gmxpreprocess/toputil.cpp
src/gromacs/gmxpreprocess/vsite_parm.cpp
src/gromacs/gmxpreprocess/x2top.cpp