[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203
Stephane Popinet
popinet at users.sf.net
Fri May 15 02:53:22 UTC 2009
The following commit has been merged in the upstream branch:
commit 123bb927aeebec8a8594ac223c9fc2433cd418a3
Author: Stephane Popinet <popinet at users.sf.net>
Date: Sat Nov 4 17:30:25 2006 +1100
Improved error messages for non-closed solid surfaces
darcs-hash:20061104063025-d4795-d347d86762c4e553b09887ad88bca6709e96ba09.gz
diff --git a/src/solid.c b/src/solid.c
index d6810f8..7edb3a3 100644
--- a/src/solid.c
+++ b/src/solid.c
@@ -306,9 +306,13 @@ gboolean gfs_set_2D_solid_fractions_from_surface (FttCell * cell,
face_fractions (&f, solid, &h);
break;
}
- default:
+ default: {
+ FttVector p;
+ ftt_cell_pos (cell, &p);
g_log (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR,
- "the surface is probably not closed (n1 = %d)", n1);
+ "the surface may not be closed (n1 = %d)\n"
+ "at (%g,%g,%g)", n1, p.x, p.y, p.z);
+ }
}
return thin;
}
@@ -582,9 +586,13 @@ static void set_solid_fractions_from_surface (FttCell * cell, GtsSurface * s, In
solid->s[i] = sol.a;
break;
}
- default:
+ default: {
+ FttVector p;
+ ftt_cell_pos (cell, &p);
g_log (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR,
- "the surface is probably not closed (n2 = %d)", n2);
+ "the surface may not be closed (n2 = %d)\n"
+ "at (%g,%g,%g)", n2, p.x, p.y, p.z);
+ }
}
}
--
Gerris Flow Solver
More information about the debian-science-commits
mailing list