Fixes SEGV in gmx order.
authorDavid van der Spoel <spoel@xray.bmc.uu.se>
Wed, 1 Feb 2017 19:06:25 +0000 (20:06 +0100)
committerErik Lindahl <erik.lindahl@gmail.com>
Fri, 3 Feb 2017 21:42:30 +0000 (22:42 +0100)
commit48d68b706614fd1dc5c432c0d570f00c7097fbfc
treee038457b3d1d9a4b3c0968ba6c4ed529e4757ae6
parentfe436f7486217a694e128aeeb746902f05274428
Fixes SEGV in gmx order.

gmx order used a cumbersome floating point method to compute
an index in a histogram leading to index -1. The present code
is simpler and robust, in fact the old code was likely wrong.

Fixes #2104

Change-Id: Ic3c15917eebe6c4964cd5cb053dfa4f05781cb73
src/gromacs/gmxana/gmx_order.c