aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Output2D.c7
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);
}