Fix logic of TRR reading
commitd465ad8beade866e0d3bc6e2545f7429bf171b76
authorMark Abraham <mark.j.abraham@gmail.com>
Thu, 8 Dec 2016 16:47:09 +0000 (9 03:47 +1100)
committerBerk Hess <hess@kth.se>
Fri, 9 Dec 2016 21:26:18 +0000 (9 22:26 +0100)
tree9e38b410553464f93c10f77ca732bcbc6718c27f
parentccbd250a3dc35313b34f1d0a3b423ea702ed7b58
Fix logic of TRR reading

Commit f7d4d019 introduced a bug where TRR reading reaching the end of
the file was indistinguishable from a reading error or a magic-number
error. This is now fixed, restoring the end-of-file behaviour that
existed before f7d4d019, while retaining the wrong-magic-number
behaviour that it introduced.

Refs #1926

Change-Id: Ic8540846c481f022bc6ae7b774794792c8c7a523
src/gromacs/fileio/trrio.cpp