[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203
Stephane Popinet
popinet at users.sf.net
Fri May 15 02:55:34 UTC 2009
The following commit has been merged in the upstream branch:
commit 446d6875a441c48b477be2c0e063b5098fe8c900
Author: Stephane Popinet <popinet at users.sf.net>
Date: Sat Jul 19 11:30:19 2008 +1000
L-dimensioning for OutputScalarSum, VTK and Tecplot
darcs-hash:20080719013019-d4795-82d484986618a95dfeb918f8d2fd92c91d199b9c.gz
diff --git a/src/output.c b/src/output.c
index a5275e9..ae01e1d 100644
--- a/src/output.c
+++ b/src/output.c
@@ -1888,7 +1888,8 @@ static gboolean gfs_output_scalar_sum_event (GfsEvent * event,
output->maxlevel,
(FttCellTraverseFunc) add, data);
fprintf (GFS_OUTPUT (event)->file->fp,
- "%s time: %g sum: % 15.6e\n", output->name, sim->time.t, sum);
+ "%s time: %g sum: % 15.6e\n", output->name, sim->time.t,
+ sum*pow (sim->physical_params.L, FTT_DIMENSION));
return TRUE;
}
return FALSE;
diff --git a/src/unstructured.c b/src/unstructured.c
index fe7cba0..727e897 100644
--- a/src/unstructured.c
+++ b/src/unstructured.c
@@ -57,7 +57,8 @@ static void vertex_pos (Vertex * v, FttVector * p, GfsSimulation * sim)
static float vertex_value (Vertex * vertex, GfsVariable * v, gint max_depth)
{
- return gfs_cell_corner_value (vertex->cell, d[vertex->i], v, max_depth);
+ return gfs_dimensional_value (v, gfs_cell_corner_value (vertex->cell, d[vertex->i],
+ v, max_depth));
}
typedef struct {
--
Gerris Flow Solver
More information about the debian-science-commits
mailing list