[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203
Stephane Popinet
popinet at users.sf.net
Fri May 15 02:53:18 UTC 2009
The following commit has been merged in the upstream branch:
commit 0ec4f832a79cb514fe2af3e292ab870f6ce677e3
Author: Stephane Popinet <popinet at users.sf.net>
Date: Mon Oct 9 07:51:37 2006 +1000
Z-moments need to be computed in 2D for solid force
darcs-hash:20061008215137-d4795-e5fa2e60f01f8a81e308c8267ecdb8e90a829068.gz
diff --git a/src/domain.c b/src/domain.c
index 47be3d6..1320696 100644
--- a/src/domain.c
+++ b/src/domain.c
@@ -2451,7 +2451,7 @@ static void add_pressure_force (FttCell * cell, gpointer * data)
gfs_pressure_force (cell, p, &ff);
gts_vector_cross (&mm.x, r, &ff.x);
- for (c = 0; c < FTT_DIMENSION; c++) {
+ for (c = 0; c < 3; c++) {
f[c] += (&ff.x)[c];
m[c] += (&mm.x)[c];
}
@@ -2529,7 +2529,7 @@ static void add_viscous_force (FttCell * cell, gpointer * data)
}
#endif /* 3D */
gts_vector_cross (&mm.x, r, &ff.x);
- for (c = 0; c < FTT_DIMENSION; c++) {
+ for (c = 0; c < 3; c++) {
f[c] += (&ff.x)[c];
m[c] += (&mm.x)[c];
}
--
Gerris Flow Solver
More information about the debian-science-commits
mailing list