diff options
author | tradke <tradke@eff87b29-5268-4891-90a3-a07138403961> | 2002-02-25 14:22:07 +0000 |
---|---|---|
committer | tradke <tradke@eff87b29-5268-4891-90a3-a07138403961> | 2002-02-25 14:22:07 +0000 |
commit | ecf88b5325466671517c984903b4a91ff873191b (patch) | |
tree | dd8208ff0bb1122fa7c1dfe208bfd645827a561a | |
parent | 902f3d2462345cb1004fcd64e04ca42ba7938762 (diff) |
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
-rw-r--r-- | src/Output2D.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 <string.h> #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); } |