[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203
Stephane Popinet
popinet at users.sf.net
Fri May 15 02:54:06 UTC 2009
The following commit has been merged in the upstream branch:
commit 43404daea34ef14871786c8887e3b975827ec8b1
Author: Stephane Popinet <popinet at users.sf.net>
Date: Thu Mar 15 09:47:58 2007 +1100
Small cells cannot be close to boundaries
darcs-hash:20070314224758-d4795-2d48d08b915cc868bb4d38884d43df5b41835902.gz
diff --git a/src/advection.c b/src/advection.c
index 5675057..1ded042 100644
--- a/src/advection.c
+++ b/src/advection.c
@@ -588,7 +588,8 @@ static gboolean is_small (FttCell * cell)
ftt_cell_neighbors (cell, &n);
for (d = 0; d < FTT_NEIGHBORS; d++)
- if (n.c[d] && solid->s[d] > 0. && solid->a/solid->s[d] < 0.5)
+ if (n.c[d] && !GFS_CELL_IS_BOUNDARY (n.c[d]) && solid->s[d] > 0. &&
+ solid->a/solid->s[d] < 0.5)
return TRUE;
}
return FALSE;
--
Gerris Flow Solver
More information about the debian-science-commits
mailing list