Fix index error in gmx chi
commitfa7f480f29164938f938938851ee8c6d16315a49
authorErik Lindahl <erik@kth.se>
Wed, 3 Jan 2018 14:44:01 +0000 (3 15:44 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 3 Jan 2018 17:13:58 +0000 (3 18:13 +0100)
tree66c02b8965156ab8b610f413d6f0f763dcc909b8
parent57a604546e74c217e5f6ef3d1b41c0b9ff65b71e
Fix index error in gmx chi

An error in the index construction could lead
to segfaults. However, the actual indices were
correct, so it should not have produced any
incorrect results.

Fixes #1814.

Change-Id: I191de7248615994d5c0dfb39eccafd53ebbedb67
src/gromacs/gmxana/gmx_chi.cpp