[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203
Stephane Popinet
popinet at users.sf.net
Fri May 15 02:54:49 UTC 2009
The following commit has been merged in the upstream branch:
commit 3ccdf074a4a2843444d31b97bb1a9f0220fe209d
Author: Stephane Popinet <popinet at users.sf.net>
Date: Wed Oct 24 08:26:43 2007 +1000
Boundary conditions are applied within Init events
This is necessary e.g. when subsequent variables are derived from the gradients
of previously initialised variables.
darcs-hash:20071023222643-d4795-25039ca2211b7ce80e8ebcaa334960031dbc9bf6.gz
diff --git a/src/event.c b/src/event.c
index 1078829..1a5c4d8 100644
--- a/src/event.c
+++ b/src/event.c
@@ -557,8 +557,10 @@ static gboolean gfs_init_event (GfsEvent * event, GfsSimulation * sim)
GSList * i = GFS_INIT (event)->f;
while (i) {
+ VarFunc * vf = i->data;
gfs_domain_cell_traverse (GFS_DOMAIN (sim), FTT_PRE_ORDER, FTT_TRAVERSE_LEAFS, -1,
- (FttCellTraverseFunc) init_vf, i->data);
+ (FttCellTraverseFunc) init_vf, vf);
+ gfs_domain_bc (GFS_DOMAIN (sim), FTT_TRAVERSE_LEAFS, -1, vf->v);
i = i->next;
}
return TRUE;
--
Gerris Flow Solver
More information about the debian-science-commits
mailing list