aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Carpet/CarpetLib/src/gdata.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/Carpet/CarpetLib/src/gdata.cc b/Carpet/CarpetLib/src/gdata.cc
index 1bcc38045..4219b80c3 100644
--- a/Carpet/CarpetLib/src/gdata.cc
+++ b/Carpet/CarpetLib/src/gdata.cc
@@ -294,8 +294,13 @@ find_source_timelevel (vector <CCTK_REAL> const & times,
{
ostringstream buf;
buf << setprecision (17)
- << "Internal error: extrapolation in time."
- << " time=" << time
+ << "Internal error: extrapolation in time.";
+ if (varindex >= 0) {
+ char * const fullname = CCTK_FullName (varindex);
+ buf << " variable=" << fullname;
+ ::free (fullname);
+ }
+ buf << " time=" << time
<< " times=" << times;
CCTK_WARN (0, buf.str().c_str());
}