Add flags for optional t_atoms entries
authorBerk Hess <hess@kth.se>
Wed, 8 Jun 2016 11:40:59 +0000 (13:40 +0200)
committerDavid van der Spoel <davidvanderspoel@gmail.com>
Thu, 29 Sep 2016 07:15:21 +0000 (09:15 +0200)
commit611d79b4b28cb063bd8e7f4dae99470b9c13e674
tree701eafc33c2ddeb0d6c8465661bd9d742761cfe9
parent2a728e82df20cad16c68f17efa51442de17a58e2
Add flags for optional t_atoms entries

Instead of checking for (non-)NULL pointer, we can now determine
the presence of optional entries in t_atoms using booleans.
Moved the mass generation from confio.cpp to a function in atoms.cpp.
Most changes are caused by checking havePdbInfo iso pdbinfo!=NULL.

Change-Id: I6e2c8ffaa2240056f34da4c93f1713c40a00f391
23 files changed:
src/gromacs/fileio/confio.cpp
src/gromacs/fileio/espio.cpp
src/gromacs/fileio/g96io.cpp
src/gromacs/fileio/groio.cpp
src/gromacs/fileio/pdbio.cpp
src/gromacs/fileio/tpxio.cpp
src/gromacs/gmxana/edittop.cpp
src/gromacs/gmxana/gmx_chi.cpp
src/gromacs/gmxana/gmx_confrms.cpp
src/gromacs/gmxana/gmx_disre.cpp
src/gromacs/gmxana/gmx_dyndom.cpp
src/gromacs/gmxana/gmx_editconf.cpp
src/gromacs/gmxana/gmx_make_ndx.cpp
src/gromacs/gmxana/gmx_rmsf.cpp
src/gromacs/gmxana/gmx_traj.cpp
src/gromacs/gmxana/gmx_trjconv.cpp
src/gromacs/gmxpreprocess/topio.cpp
src/gromacs/selection/centerofmass.cpp
src/gromacs/selection/sm_simple.cpp
src/gromacs/selection/tests/toputils.cpp
src/gromacs/topology/atoms.cpp
src/gromacs/topology/atoms.h
src/gromacs/topology/mtop_util.cpp