[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203
Stephane Popinet
popinet at users.sf.net
Fri May 15 02:54:03 UTC 2009
The following commit has been merged in the upstream branch:
commit fd314c30fba4c2ab945d8d14e6023d0b5e53866b
Author: Stephane Popinet <popinet at users.sf.net>
Date: Thu Mar 8 14:54:54 2007 +1100
Bug fix for Dirichlet BC for VOF tracers
darcs-hash:20070308035454-d4795-31a51fe208fbf883ebdc71b560524624f715a6ff.gz
diff --git a/src/boundary.c b/src/boundary.c
index d29eb18..78163a5 100644
--- a/src/boundary.c
+++ b/src/boundary.c
@@ -49,16 +49,13 @@ static void face_symmetry (FttCellFace * f, GfsBc * b)
if (b->v->component == f->d/2)
GFS_STATE (f->cell)->f[f->d].v =
GFS_STATE (f->neighbor)->f[FTT_OPPOSITE_DIRECTION (f->d)].v = 0.;
+ else if (GFS_IS_VARIABLE_TRACER_VOF (b->v))
+ GFS_STATE (f->cell)->f[f->d].v = GFS_VARIABLE (f->neighbor, b->v->i);
else
GFS_STATE (f->cell)->f[f->d].v =
GFS_STATE (f->neighbor)->f[FTT_OPPOSITE_DIRECTION (f->d)].v;
}
-static void face_symmetry_vof (FttCellFace * f, GfsBc * b)
-{
- GFS_STATE (f->cell)->f[f->d].v = GFS_VARIABLE (f->neighbor, b->v->i);
-}
-
static void bc_write (GtsObject * o, FILE * fp)
{
g_assert (GFS_BC (o)->v);
@@ -87,9 +84,6 @@ static void bc_read (GtsObject ** o, GtsFile * fp)
gts_file_error (fp, "unknown variable `%s'", fp->token->str);
else
gts_file_next_token (fp);
-
- if (GFS_IS_VARIABLE_TRACER_VOF (bc->v))
- bc->face_bc = (FttFaceTraverseFunc) face_symmetry_vof;
}
static void gfs_bc_class_init (GtsObjectClass * klass)
--
Gerris Flow Solver
More information about the debian-science-commits
mailing list