Modify single/double EPS to agree with ISO C
authorErik Lindahl <erik@kth.se>
Thu, 5 Jun 2014 14:34:26 +0000 (16:34 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Mon, 9 Jun 2014 05:12:51 +0000 (07:12 +0200)
commit97161d2601f4f98a45d49de2ef8f630f18c94455
treebab9cd7c7129c190672d5b0f3fb50a7bab57a2cf
parent471d8013ac3f72eee68fcf7c24943e0c349bd5ba
Modify single/double EPS to agree with ISO C

The previous Gromacs values were a factor 2 too tight. While
we're at it, we also added float modifiers to the single-precision
constants, increased the accuracy in the double max/min values,
and improved the least significant bit in one of the single-precision
values. The previous relative accuracies for the PME correction
analytical approximations where set fairly arbitrary by dividing a
tightly chose constant with GMX_REAL_EPS, and since this is now a
larger number the unit test tolerance for those corrections has been
increased slightly to avoid triggering false failures.

Fixes #1356.

Change-Id: If29d2ff4141d86fd019e0dbdbfb7737ead28c3d4
src/gromacs/legacyheaders/types/simple.h
src/gromacs/simd/tests/simd_math.cpp