From 11e170d2a9e37cf359d23efa53da4fa11fde4a6a Mon Sep 17 00:00:00 2001 From: David van der Spoel Date: Sat, 24 May 2014 09:10:13 +0200 Subject: [PATCH] Permit trjconv to read and write velocities with TNG files Partial fix of #1502 This set velocity reading and writing on for tng file in trjconv. However there still is a problem with the number of frames being reduced at each conversion. Change-Id: I91e7f5245ca75ebb9dd8e4450f94015b5c3f2bfa --- src/gromacs/gmxana/gmx_trjconv.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gromacs/gmxana/gmx_trjconv.c b/src/gromacs/gmxana/gmx_trjconv.c index 827ef907cc..1ea7e0b7fe 100644 --- a/src/gromacs/gmxana/gmx_trjconv.c +++ b/src/gromacs/gmxana/gmx_trjconv.c @@ -1032,9 +1032,10 @@ int gmx_trjconv(int argc, char *argv[]) { /* check if velocities are possible in input and output files */ ftpin = fn2ftp(in_file); - bVels = (ftp == efTRR || ftp == efTRJ || ftp == efGRO || ftp == efG96) - && (ftpin == efTRR || ftpin == efTRJ || ftpin == efGRO || ftpin == efG96 || - ftpin == efCPT); + bVels = (ftp == efTRR || ftp == efTRJ || ftp == efGRO || + ftp == efG96 || ftp == efTNG) + && (ftpin == efTRR || ftpin == efTRJ || ftpin == efGRO || + ftpin == efG96 || ftpin == efTNG || ftpin == efCPT); } if (bSeparate || bSplit) { -- 2.22.0