aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryye00 <yye00@7daa882c-dc44-4453-834e-278d26b18e6a>2005-10-06 19:15:30 +0000
committeryye00 <yye00@7daa882c-dc44-4453-834e-278d26b18e6a>2005-10-06 19:15:30 +0000
commit6a45dd4acdaf87939d31c95b6b3ee4e2ba782f5f (patch)
tree441e4197923053a013f779c3747a889242e748d6
parent9fa2943a4d7a405d0b1720c210ddcc8598d7b990 (diff)
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
-rw-r--r--src/ReductionAvg.c2
-rw-r--r--src/ReductionNorm1.c2
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++)
{