Fix trjconv for tdump<frame timestep
authorErik Lindahl <erik@kth.se>
Wed, 3 Jan 2018 10:48:34 +0000 (11:48 +0100)
committerDavid van der Spoel <spoel@xray.bmc.uu.se>
Wed, 3 Jan 2018 19:37:26 +0000 (20:37 +0100)
commitd27e905528c781d5fb08528d34a748840d055cd8
tree2e99d6560b17de1be41a577b3a7a107697a880f6
parentfa7f480f29164938f938938851ee8c6d16315a49
Fix trjconv for tdump<frame timestep

Set frame timestep before starting the loop by
reading first two frames and rewinding, and make
sure we always write something to the dump output
based on best-guess (if there is at least one
input frame present).

Fixes #1832.

Change-Id: Ic1db912c966448e68b307cfc1fd492f4677e7ab4
src/gromacs/gmxana/gmx_trjconv.cpp