[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203
Stephane Popinet
popinet at users.sf.net
Fri May 15 02:54:25 UTC 2009
The following commit has been merged in the upstream branch:
commit a37aa90ad3236cea64c3bcde4d80f289d21cce9d
Author: Stephane Popinet <popinet at users.sf.net>
Date: Thu Jul 26 12:02:05 2007 +1000
Explicit message when trying to use implicit surfaces with RefineSolid
darcs-hash:20070726020205-d4795-79852969a715f862e5f1295623a2fac9a2702963.gz
diff --git a/src/refine.c b/src/refine.c
index 3ef7074..d4300fd 100644
--- a/src/refine.c
+++ b/src/refine.c
@@ -221,10 +221,12 @@ static void gfs_refine_solid_refine (GfsRefine * refine, GfsSimulation * sim)
GSList * i = sim->solids->items;
while (i) {
p.surface = GFS_SOLID (i->data)->s;
- g_assert (p.surface->s); /* fixme: this works only for GTS surfaces */
- gfs_domain_traverse_cut (GFS_DOMAIN (sim), p.surface,
- FTT_PRE_ORDER, FTT_TRAVERSE_LEAFS,
- (FttCellTraverseCutFunc) refine_cut_cell, &p);
+ if (p.surface->s)
+ gfs_domain_traverse_cut (GFS_DOMAIN (sim), p.surface,
+ FTT_PRE_ORDER, FTT_TRAVERSE_LEAFS,
+ (FttCellTraverseCutFunc) refine_cut_cell, &p);
+ else
+ g_warning ("GfsRefineSolid only works with explicit surfaces");
i = i->next;
}
}
--
Gerris Flow Solver
More information about the debian-science-commits
mailing list