[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203

Stephane Popinet popinet at users.sf.net
Fri May 15 02:55:38 UTC 2009


The following commit has been merged in the upstream branch:
commit ce76a00a9535aee58828ce8ad048d29ff676605c
Author: Stephane Popinet <popinet at users.sf.net>
Date:   Fri Jun 20 07:28:01 2008 +1000

    Quick fix for surfaces exactly coincident with mesh
    
    i.e. it should not be necessary anymore to shift implicit surfaces by epsilon
    to get the expected results.
    
    darcs-hash:20080619212801-d4795-87b35d8e9f42dbdfe92c66d6a50514d5a30f2cd0.gz

diff --git a/src/surface.c b/src/surface.c
index f9dc81d..576d5cc 100644
--- a/src/surface.c
+++ b/src/surface.c
@@ -745,5 +745,6 @@ gdouble gfs_surface_implicit_value (GfsSurface * s, GtsPoint p)
 
   if (s->m)
     gts_point_transform (&p, s->m);
-  return (s->flip ? -1. : 1.)*gfs_function_spatial_value (s->f, (FttVector *)&p.x);
+  return (s->flip ? -1. : 1.)*(gfs_function_spatial_value (s->f, (FttVector *)&p.x)
+			       /* fixme?? */ + 1e-6);
 }

-- 
Gerris Flow Solver



More information about the debian-science-commits mailing list