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

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


The following commit has been merged in the upstream branch:
commit fdc4a4dfa9508037bf711cfc0670c97619489343
Author: Stephane Popinet <popinet at users.sf.net>
Date:   Fri Nov 28 11:31:55 2008 +1100

    Gnuplot output from gfs2oogl takes mapping into account
    
    darcs-hash:20081128003155-d4795-76e5d590fc7b4a73dbcf17c04e49c4b5ee56082a.gz

diff --git a/src/graphic.c b/src/graphic.c
index 8859263..a3a560e 100644
--- a/src/graphic.c
+++ b/src/graphic.c
@@ -434,9 +434,11 @@ static void write_gnuplot (FttCell * cell, gpointer * data)
 
   if (bbox == NULL || (pos.x >= bbox->x1 && pos.x <= bbox->x2 &&
 		       pos.y >= bbox->y1 && pos.y <= bbox->y2 &&
-		       pos.z >= bbox->z1 && pos.z <= bbox->z2))
+		       pos.z >= bbox->z1 && pos.z <= bbox->z2)) {
+    gfs_simulation_map_inverse (GFS_SIMULATION (v->domain), &pos);
     fprintf (fp, "%g %g %g %g\n", 
 	     pos.x, pos.y, pos.z, GFS_VARIABLE (cell, v->i));
+  }
 }
 
 void gfs_write_gnuplot (GfsDomain * domain, 

-- 
Gerris Flow Solver



More information about the debian-science-commits mailing list