Fixes bug in g_hbond that makes it produce fatal error.
authorDavid van der Spoel <spoel@xray.bmc.uu.se>
Tue, 20 Nov 2012 10:58:18 +0000 (11:58 +0100)
committerDavid van der Spoel <spoel@xray.bmc.uu.se>
Tue, 20 Nov 2012 10:58:18 +0000 (11:58 +0100)
commit369ea4fbe2f9bb4bff9348a23ffc2862f677d2d7
treee51d3e7fe832e47f5a70e3546906dfd659f91372
parentff5db8c24f90102daced6bf1e570e3ab4123867d
Fixes bug in g_hbond that makes it produce fatal error.

Rather than crashing with a range check error when there
are no hydrogen bonds the code now prints to stderr and
continues normally.

Change-Id: Idc9fddf8bfac9989bc1aa3a9c552b08580f99949
src/tools/gmx_hbond.c