[SCM] Gerris Flow Solver branch, upstream,	updated. b3aa46814a06c9cb2912790b23916ffb44f1f203
    Stephane Popinet 
    popinet at users.sf.net
       
    Fri May 15 02:54:45 UTC 2009
    
    
  
The following commit has been merged in the upstream branch:
commit b8ce9b82c4ac6d87af514f1e0cd6dbbd7a9ba198
Author: Stephane Popinet <popinet at users.sf.net>
Date:   Fri Sep 28 14:18:23 2007 +1000
    GfsNorm ignores values with a weight of zero for max norm
    
    darcs-hash:20070928041823-d4795-f9a066d2e500a96284e7fc9182f4c95ac1da83ae.gz
diff --git a/src/fluid.c b/src/fluid.c
index d83ba58..850c16c 100644
--- a/src/fluid.c
+++ b/src/fluid.c
@@ -1702,7 +1702,7 @@ void gfs_norm_add (GfsNorm * n, gdouble val, gdouble weight)
   if (val < G_MAXDOUBLE) {
     n->bias += weight*val;
     val = fabs (val);
-    if (val > n->infty)
+    if (weight != 0. && val > n->infty)
       n->infty = val;
     n->first += weight*val;
     n->second += weight*val*val;
-- 
Gerris Flow Solver
    
    
More information about the debian-science-commits
mailing list