aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ReduceGA.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ReduceGA.c b/src/ReduceGA.c
index b643128..86530d0 100644
--- a/src/ReduceGA.c
+++ b/src/ReduceGA.c
@@ -18,6 +18,7 @@
#include "pugh_reductions.h"
#define ABS(x) ((x) < 0 ? -(x) : (x))
+#define SMALL_NUMBER 0
static const char *rcsid = "$Id:";
@@ -794,7 +795,7 @@ static int ReduceGridArrays (const cGH *GH,
{
if (weight_on == 1)
{
- if (ABS(weight_sum) > 1e-12)
+ if (ABS(weight_sum) > SMALL_NUMBER)
{
for (i = 0; i< M_output_values; i++)
{