From 8cedc4e09c9fcd5beaa9a32147791c85d09e43a4 Mon Sep 17 00:00:00 2001 From: tradke Date: Sun, 5 May 2002 21:11:38 +0000 Subject: 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 --- src/Utils.c | 22 ++++++++++------------ 1 file 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 -- cgit v1.2.3