From ecf88b5325466671517c984903b4a91ff873191b Mon Sep 17 00:00:00 2001 From: tradke Date: Mon, 25 Feb 2002 14:22:07 +0000 Subject: In the warning message, also say for which variable output was already done. git-svn-id: http://svn.cactuscode.org/arrangements/CactusIO/IOJpeg/trunk@56 eff87b29-5268-4891-90a3-a07138403961 --- src/Output2D.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Output2D.c b/src/Output2D.c index cc58789..82b6bb7 100644 --- a/src/Output2D.c +++ b/src/Output2D.c @@ -16,6 +16,7 @@ #include #include "cctk_Parameters.h" +#include "util_String.h" #include "CactusBase/IOUtil/src/ioutil_Utils.h" #include "IOJpeg.h" @@ -120,6 +121,7 @@ int IOJpeg_Output2DVarAs (const cGH *GH, const char *fullname, const char *alias int IOJpeg_TimeFor2D (const cGH *GH, int vindex) { + char *fullname; IOJpegGH *myGH; @@ -144,7 +146,10 @@ int IOJpeg_TimeFor2D (const cGH *GH, int vindex) /* Check variable not already output this iteration */ if (myGH->out2D_last [vindex] == GH->cctk_iteration) { - CCTK_WARN (2, "Already done 2D output in IOJpeg"); + fullname = CCTK_FullName (vindex); + CCTK_VWarn (2, __LINE__, __FILE__, CCTK_THORNSTRING, + "Already done IOJpeg 2D output for variable '%s'", fullname); + free (fullname); return (0); } -- cgit v1.2.3