aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2002-05-05 21:11:38 +0000
committertradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2002-05-05 21:11:38 +0000
commit8cedc4e09c9fcd5beaa9a32147791c85d09e43a4 (patch)
treece40a0a6b7c377b5d322bae89f9b3a28575a223c
parent83cdd90c8807d3e101b085349590315cb79e795e (diff)
Fixed a printf statement (too many function arguments).
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@162 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
-rw-r--r--src/Utils.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/Utils.c b/src/Utils.c
index 8460b59..62f0395 100644
--- a/src/Utils.c
+++ b/src/Utils.c
@@ -250,17 +250,16 @@ int IOUtil_1DLines (const cGH *GH,
upper_range[dim] < origin_phys[dir][dim])
{
CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
- "IOUtil_1DLines: %c-coordinate for slice center of 1D "
- "lines in %c-direction (%f) is out of grid coordinates "
- "range (%f, %f)",
- 'x' + dim, 'x' + dir, (double) origin_phys[dir][dim],
+ "IOUtil_1DLines: %c-coordinate (%f) for slice center of "
+ "1D lines in %c-direction for %dD variables is out of "
+ "grid coordinates range (%f, %f)",
+ 'x' + dim, (double) origin_phys[dir][dim],
+ 'x' + dir, num_dims,
(double) lower_range[dim], (double) upper_range[dim]);
CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
- "IOUtil_1DLines: no 1D %c-line output will be written for "
- "%dD variables with this slice center default",
- 'x' + dir, num_dims);
-
- slice_center[dir][dim] = -1;
+ "IOUtil_1DLines: slice center will default to %c-index 0",
+ 'x' + dir);
+ slice_center[dir][dim] = 0;
}
else
{
@@ -385,9 +384,8 @@ int IOUtil_2DPlanes (const cGH *GH,
'x' + (num_dims - dir - 1), (double) origin_phys[dir],
(double) lower_range[dir], (double) upper_range[dir]);
CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
- "IOUtil_2DPlanes: no 2D planes spanning in this direction "
- "will be written for %dD variables with this slice center ",
- "default", num_dims);
+ "IOUtil_2DPlanes: slice center will default to %c-index 0",
+ 'x' + (num_dims - dir - 1));
slice_center[dir] = 0;
}
else