Fix floating-point exception
authorMark Abraham <mark.j.abraham@gmail.com>
Thu, 8 Jan 2015 12:50:30 +0000 (13:50 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Thu, 8 Jan 2015 17:39:14 +0000 (18:39 +0100)
commit9a6b6096b0cde23ac42f5d342d96f4a532d8ebcc
treeedf845628e1ec82a0573691762c3ac83cae0a862
parentbe4e7a2b0dd2fd94a2994cd908107aafbdee143e
Fix floating-point exception

complex/swap_x does only two steps of MD and has been observed to give
a floating-point exception on Jenkins from print_wallcycle(). The last
stderr and .log output suggested tot == 0 may have been the problem,
but it can't actually be reproduced. Even if it's not fixing the right
problem, this code is preferable to the old version.

Change-Id: Iad514158ae551aded45787e8d595d3876b9e37c8
src/gromacs/timing/wallcycle.c