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

Stephane Popinet popinet at users.sf.net
Fri May 15 02:54:06 UTC 2009


The following commit has been merged in the upstream branch:
commit faa9d33293f3b2a55a4d7bcc2a00a4a0a9c35278
Author: Stephane Popinet <popinet at users.sf.net>
Date:   Thu Mar 15 09:03:13 2007 +1100

    New derived variable "dt" (timestep)
    
    darcs-hash:20070314220313-d4795-7d1aedd503ad44597fce519d3b99f1efcecaaa4a.gz

diff --git a/src/simulation.c b/src/simulation.c
index 092a71f..b69f222 100644
--- a/src/simulation.c
+++ b/src/simulation.c
@@ -671,6 +671,11 @@ static gdouble cell_t (FttCell * cell, FttCellFace * face, GfsSimulation * sim)
   return sim->time.t;
 }
 
+static gdouble cell_dt (FttCell * cell, FttCellFace * face, GfsSimulation * sim)
+{
+  return sim->advection_params.dt;
+}
+
 static gdouble cell_vorticity (FttCell * cell, FttCellFace * face, GfsDomain * domain)
 {
   return gfs_vorticity (cell, gfs_domain_velocity (domain));
@@ -738,6 +743,7 @@ static void simulation_init (GfsSimulation * object)
     { "cy", "y-coordinate of the center of the cell", cell_cy },
     { "cz", "z-coordinate of the center of the cell", cell_cz },
     { "t",  "Physical time", cell_t },
+    { "dt", "Timestep", cell_dt },
     { "Vorticity", "Norm of the vorticity vector of the velocity field", cell_vorticity },
     { "Divergence", "Divergence of the velocity field", cell_divergence },
     { "Velocity", "Norm of the velocity vector", cell_velocity_norm },

-- 
Gerris Flow Solver



More information about the debian-science-commits mailing list