From 6a45dd4acdaf87939d31c95b6b3ee4e2ba782f5f Mon Sep 17 00:00:00 2001 From: yye00 Date: Thu, 6 Oct 2005 19:15:30 +0000 Subject: minor addition/modification that did not go through the last patch git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalReduce/trunk@61 7daa882c-dc44-4453-834e-278d26b18e6a --- src/ReductionAvg.c | 2 +- src/ReductionNorm1.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ReductionAvg.c b/src/ReductionAvg.c index dc320ae..d0e39aa 100644 --- a/src/ReductionAvg.c +++ b/src/ReductionAvg.c @@ -328,7 +328,7 @@ static int ReductionAvg (int N_dims, int operator_handle, { if (weight_on == 1) { - if (ABS(weight_sum) > 1e-12) + if (ABS(weight_sum) > SMALL_NUMBER) { for (i = 0; i< M_output_numbers; i++) { diff --git a/src/ReductionNorm1.c b/src/ReductionNorm1.c index bc2fd02..92299d4 100644 --- a/src/ReductionNorm1.c +++ b/src/ReductionNorm1.c @@ -332,7 +332,7 @@ static int ReductionL1 (int N_dims, int operator_handle, { if (weight_on == 1) { - if (ABS(weight_sum) > 1e-12) + if (ABS(weight_sum) > SMALL_NUMBER) { for (i = 0; i< M_output_numbers; i++) { -- cgit v1.2.3