aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjthorn <jthorn@df1f8a13-aa1d-4dd4-9681-27ded5b42416>2006-05-31 16:45:47 +0000
committerjthorn <jthorn@df1f8a13-aa1d-4dd4-9681-27ded5b42416>2006-05-31 16:45:47 +0000
commit3eb4f2b7b8691d7c08b712a1afe5c8902b79b871 (patch)
treef1d686c2c2d2043b6c50b5a931e5dfc5a98d5bde
parent6c47834b1682a015ff855da1a9e2ad042695fd99 (diff)
If we get an interpolation point that's too close to the edge of the
grid (so the interpolation fails), we print a warning message. This commit adds the text "(this may be caused by a global interpolation with\n" " driver::ghost_size too small)\n" to this warning message, to cue the user about a common cause of this problem. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalInterp/trunk@194 df1f8a13-aa1d-4dd4-9681-27ded5b42416
-rw-r--r--src/Interpolate.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/Interpolate.c b/src/Interpolate.c
index 51ac0c5..4e27699 100644
--- a/src/Interpolate.c
+++ b/src/Interpolate.c
@@ -432,7 +432,10 @@ if (n == LocalInterp_verbose_debug_n)
"or inside but too close to a grid boundary)\n"
" for interpolation order %d\n"
" at interpolation point %d with x = (%f)\n"
- " and grid min/max = (%f/%f)\n",
+ " and grid min/max = (%f/%f)\n"
+ "(this may be caused by a global interpolation with\n"
+ " driver::ghost_size too small)\n"
+ ,
order, n,
(double) coord[0][n],
(double) origin[0], (double) (origin[0] + (dims[0]-1)*delta[0]));
@@ -445,7 +448,10 @@ if (n == LocalInterp_verbose_debug_n)
"or inside but too close to a grid boundary)\n"
" for interpolation order %d\n"
" at interpolation point %d with xy = (%f, %f)\n"
- " and grid min/max = (%f/%f, %f/%f)\n",
+ " and grid min/max = (%f/%f, %f/%f)\n"
+ "(this may be caused by a global interpolation with\n"
+ " driver::ghost_size too small)\n"
+ ,
order, n,
(double) coord[0][n], (double) coord[1][n],
(double) origin[0], (double) (origin[0] + (dims[0]-1)*delta[0]),
@@ -459,7 +465,10 @@ if (n == LocalInterp_verbose_debug_n)
"or inside but too close to a grid boundary)\n"
" for interpolation order %d\n"
" at interpolation point %d with xyz = (%f, %f, %f)\n"
- " and grid min/max = (%f/%f, %f/%f, %f/%f)\n",
+ " and grid min/max = (%f/%f, %f/%f, %f/%f)\n"
+ "(this may be caused by a global interpolation with\n"
+ " driver::ghost_size too small)\n"
+ ,
order, n,
(double) coord[0][n], (double) coord[1][n], (double) coord[2][n],
(double) origin[0], (double) (origin[0] + (dims[0]-1)*delta[0]),