Fixed gmx rmsf -q -oq.
authorMark Abraham <mark.j.abraham@gmail.com>
Sun, 22 Jan 2017 13:56:19 +0000 (14:56 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Sun, 22 Jan 2017 14:07:37 +0000 (15:07 +0100)
commit95476406025b79cec711832bf9a9bceb0748c467
tree77149db401b29546d6f0f754687602c7d840999a
parentc35e87d620cd22164a6f0cd0e540e15d4e82eb16
Fixed gmx rmsf -q -oq.

xref was used instead of pdbx in that case, which led to a PDB file
containing B-factors to have the coordinates based on those from the
-s file, rather than -q file. The tool description (and the other
logic) suggests that using -q should be the behaviour, in particular
because the contents of xref were then unused. gmx rmsf -oq was
otherwise fine.

Also fixed where xref was being abused as a temporary vector, which
asks for more such trouble, so improved that (without changing
functionality).

Noted TODO that npdbatoms might not match top.atoms.nr leading to
possible segfaults.

Change-Id: Id2c14fa5ca93c2a8de87f9bfa144a6db38fcc97f
src/gromacs/gmxana/gmx_rmsf.c