Fix selection of xtc groups not starting at index 0
authorErik Lindahl <erik@kth.se>
Sun, 27 Jul 2014 08:54:33 +0000 (10:54 +0200)
committerErik Lindahl <erik@kth.se>
Sun, 27 Jul 2014 08:54:33 +0000 (10:54 +0200)
commit40047094521ca84c09e6d8ebd60cadbba9bc5341
tree0a680bdaf58bbef7152610136a7af6b9093dbe61
parentb0e60e91add6d27dd0e56b1864f95369f66e7378
Fix selection of xtc groups not starting at index 0

The code to select atoms to write to the xtc file
only looped over the number of atoms selected for
output rather than all atoms. This meant that xtc
group selections that were not located at the start
of the atom indices would not be written correctly.

Fixes #1561.

Change-Id: I48886a75c682e38122dadcb2f752507b14b308fe
src/gromacs/fileio/mdoutf.c