[SCM] Gerris Flow Solver branch, upstream,	updated. b3aa46814a06c9cb2912790b23916ffb44f1f203
    Stephane Popinet 
    popinet at users.sf.net
       
    Fri May 15 02:53:22 UTC 2009
    
    
  
The following commit has been merged in the upstream branch:
commit 06d2702669e960983f9697a7510a94c6c8df6d42
Author: Stephane Popinet <popinet at users.sf.net>
Date:   Thu Nov 23 07:31:53 2006 +1100
    GfsVariableResidual wasn't scaled properly
    
    darcs-hash:20061122203153-d4795-446cdfe7144f9449c14aae7626431388bc2386d4.gz
diff --git a/src/variable.c b/src/variable.c
index 8f00bb0..ba82cc2 100644
--- a/src/variable.c
+++ b/src/variable.c
@@ -294,7 +294,7 @@ static void scale_residual (FttCell * cell, GfsVariable * res)
 {
   gdouble size = ftt_cell_size (cell);
   gdouble dt = GFS_SIMULATION (res->domain)->advection_params.dt;
-  GFS_VARIABLE (cell, res->i) *= dt/(size*size);
+  GFS_VARIABLE (cell, res->i) *= dt*dt/(size*size);
 }
 
 static gboolean variable_residual_event (GfsEvent * event, GfsSimulation * sim)
-- 
Gerris Flow Solver
    
    
More information about the debian-science-commits
mailing list