Add readConfAndTopology
authorBerk Hess <hess@kth.se>
Tue, 7 Jun 2016 14:03:47 +0000 (16:03 +0200)
committerDavid van der Spoel <davidvanderspoel@gmail.com>
Sat, 8 Oct 2016 07:23:38 +0000 (09:23 +0200)
commitb22c29fa4816a6b44a713a8041c09c9811695565
tree405e4bf61762bf7e3e8b22e66de801a6b1310676
parent13e5b63a9b55e49cf1bab6d69b2a88ac552771fd
Add readConfAndTopology

readConfAndTopology will replace read_tps_conf, reading to gmx_mtop_t
instead of to the deprecated t_topology struct.
With requireMasses=TRUE, read_tps_conf will generate a fatal error when
an atom is not found in the mass database, as it was originally
intended, since we don't want to calculate with incorrect masses.
The availability of masses is signaled by the haveMass bool in t_atoms.
The trajectory analysis framework now works with optional masses.
This is done by not requiring masses and attempting to look up masses
from the database when they were not present in the structure file.

Refs #1862.

Change-Id: I045649fa458a08415fd319c568d15ad514a30a9f
15 files changed:
src/gromacs/fileio/confio.cpp
src/gromacs/fileio/confio.h
src/gromacs/fileio/espio.cpp
src/gromacs/fileio/espio.h
src/gromacs/fileio/groio.cpp
src/gromacs/fileio/groio.h
src/gromacs/fileio/pdbio.cpp
src/gromacs/fileio/pdbio.h
src/gromacs/selection/sm_simple.cpp
src/gromacs/topology/atoms.cpp
src/gromacs/topology/atoms.h
src/gromacs/topology/mtop_util.cpp
src/gromacs/topology/mtop_util.h
src/gromacs/trajectoryanalysis/modules/select.cpp
src/gromacs/trajectoryanalysis/runnercommon.cpp