Fix trjconv -sub with .trr files
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 15 Jan 2013 16:13:30 +0000 (17:13 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Thu, 17 Jan 2013 18:00:36 +0000 (19:00 +0100)
commit372187d7df84cbb554845ce944686165722e1813
treeb88a6a52e389e5575c3a8e3bff4b0defc46d466c
parent22f9fef49c539a2241631ceb7a074c8fba57f9b3
Fix trjconv -sub with .trr files

ftp is set from the -o file's extension, which cannot be efTRN,
since that's a place-holder file type for command-line parsing.
The error text clearly indicates that .trr (== efTRR) should
work, but of course we have no tests for anything.

Added comment that other trajectory types could work here,
but can't be tested at this time.

Fixes #1118

Change-Id: I118b9b1c25fa7c0640c27e584400dfc64853e67f
src/tools/gmx_trjconv.c