From 89e3c058c239575de1b502474f05c227918d48a1 Mon Sep 17 00:00:00 2001 From: schnetter Date: Sun, 1 Feb 2004 17:43:22 +0000 Subject: Improve error message. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Periodic/trunk@11 1bf05452-ddb3-4880-bfa1-00436340132b --- src/periodic.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/periodic.c b/src/periodic.c index b47aeb7..ccb6a8a 100644 --- a/src/periodic.c +++ b/src/periodic.c @@ -109,12 +109,12 @@ BndPeriodicVI (cGH const * restrict const cctkGH, if (data.gsh[dir] < 2*stencil[dir]+1) { CCTK_VWarn (0, __LINE__, __FILE__, CCTK_THORNSTRING, - "The group %s has in direction %d only %d grid points. " + "The group %s has in the %c-direction only %d grid points. " "This is not large enough for a periodic boundary that is %d grid points wide. " - "The group needs to have at least %d grid points in direction %d.", - CCTK_GroupNameFromVarI(vi), dir, data.gsh[dir], + "The group needs to have at least %d grid points in that direction.", + CCTK_GroupNameFromVarI(vi), "xyz"[dir], data.gsh[dir], stencil[dir], - 2*stencil[dir]+1, dir); + 2*stencil[dir]+1); } /* Loop over faces */ -- cgit v1.2.3