[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203

Stephane Popinet popinet at users.sf.net
Fri May 15 02:54:48 UTC 2009


The following commit has been merged in the upstream branch:
commit 9414094775e980b6f32c661ebdaa00142e51baf1
Author: Stephane Popinet <popinet at users.sf.net>
Date:   Fri Oct 12 14:10:33 2007 +1000

    Bug fix for gfs_domain_boundary_locate()
    
    This is important only for VOF boundary conditions.
    
    darcs-hash:20071012041033-d4795-fd6eae8087c254617bd2e3bbb8d92dec21a223dd.gz

diff --git a/src/domain.c b/src/domain.c
index 52f18dd..bace6c4 100644
--- a/src/domain.c
+++ b/src/domain.c
@@ -1991,8 +1991,12 @@ static void box_boundary_locate (GfsBox * box, LocateArgs * a)
   FttDirection d;
 
   for (d = 0; d < FTT_NEIGHBORS; d++)
-    if (a->cell == NULL && box->neighbor[d] && GFS_IS_BOUNDARY (box->neighbor[d]))
-      a->cell = ftt_cell_locate (GFS_BOUNDARY (box->neighbor[d])->root, a->target, a->max_depth);
+    if (a->cell == NULL && box->neighbor[d] && GFS_IS_BOUNDARY (box->neighbor[d])) {
+      FttCell * cell = ftt_cell_locate (GFS_BOUNDARY (box->neighbor[d])->root, a->target, 
+					a->max_depth);
+      if (cell && GFS_CELL_IS_BOUNDARY (cell))
+	a->cell = cell;
+    }
 }
 
 /**

-- 
Gerris Flow Solver



More information about the debian-science-commits mailing list