aboutsummaryrefslogtreecommitdiff
path: root/src/Utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Utils.c')
-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