[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203
Stephane Popinet
popinet at users.sf.net
Fri May 15 02:55:50 UTC 2009
The following commit has been merged in the upstream branch:
commit 8d05f39d62b2a035961e5e819fc55efe5f0ba287
Author: Stephane Popinet <popinet at users.sf.net>
Date: Tue Oct 28 14:54:01 2008 +1100
Dimensioning of Flather boundary conditions
darcs-hash:20081028035401-d4795-8f7282f961e30075f6f2bd96f46ce4dafa89baa4.gz
diff --git a/src/ocean.c b/src/ocean.c
index d549091..eb2081e 100644
--- a/src/ocean.c
+++ b/src/ocean.c
@@ -1183,6 +1183,7 @@ static void bc_flather_read (GtsObject ** o, GtsFile * fp)
(* GTS_OBJECT_CLASS (gfs_bc_flather_class ())->parent_class->read) (o, fp);
+ gfs_function_set_units (GFS_BC_VALUE (bc)->val, 1.);
if (fp->type == GTS_ERROR)
return;
if (fp->type != GTS_STRING) {
@@ -1208,6 +1209,7 @@ static void bc_flather_read (GtsObject ** o, GtsFile * fp)
if (bc->val == NULL)
bc->val = gfs_function_new (gfs_function_class (), 0.);
gfs_function_read (bc->val, gfs_box_domain (GFS_BC (bc)->b->box), fp);
+ gfs_function_set_units (bc->val, 1.);
ftt_cell_traverse (GFS_BC (bc)->b->root, FTT_PRE_ORDER, FTT_TRAVERSE_ALL, -1,
(FttCellTraverseFunc) set_gradient_boundary, NULL);
@@ -1243,8 +1245,7 @@ static gdouble flather_value (FttCellFace * f, GfsBc * b)
#if !FTT_2D && !FTT_2D3
lz *= 1 << MAXLEVEL;
#endif
- gdouble pb = gfs_function_face_value (GFS_BC_FLATHER (b)->val, f)*
- sim->physical_params.g*lz/sim->physical_params.L;
+ gdouble pb = gfs_function_face_value (GFS_BC_FLATHER (b)->val, f)*sim->physical_params.g*lz;
return gfs_function_face_value (GFS_BC_VALUE (b)->val, f) +
(FTT_FACE_DIRECT (f) ? -1. : 1.)*
--
Gerris Flow Solver
More information about the debian-science-commits
mailing list