Improve frame time/step handling in trjconv
authorErik Lindahl <erik@kth.se>
Thu, 28 Dec 2017 13:51:35 +0000 (14:51 +0100)
committerDavid van der Spoel <spoel@xray.bmc.uu.se>
Thu, 4 Jan 2018 21:55:02 +0000 (22:55 +0100)
commit2002cfdecf30de2677944da27cfc65ee88f58f96
tree5d0ba0be60430a655cbf2830113a203f80bd6ffb
parenta726027aa49762378558291c1d88ebf2fb611200
Improve frame time/step handling in trjconv

Store the exact step in PDB/GRO file headers,
and be more careful about not claiming to have
time or step information when it was not available.
This change will avoid some of the problems
described in #2189, but it does not yet properly
fix the issue in the TNG library.

Refs #2189.

Change-Id: I44bb59fbca83da53f6e8d4e494ae6476a82eb7cd
src/gromacs/fileio/groio.cpp
src/gromacs/fileio/tngio.cpp
src/gromacs/fileio/trxio.cpp
src/gromacs/gmxana/gmx_clustsize.cpp
src/gromacs/gmxana/gmx_trjconv.cpp