diff options
author | Erik Schnetter <schnetter@aei.mpg.de> | 2005-07-26 11:11:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@aei.mpg.de> | 2005-07-26 11:11:00 +0000 |
commit | adf356c7b890fb08b6df2cf4b1982c7e65780e58 (patch) | |
tree | ec669db24bd2949144bfc3a65059ebf892e55a68 | |
parent | e34521a31ea28200f579e54e034738a74f86c611 (diff) |
CarpetLib: Disable check for time extrapolation for op_copy grid functions
Disable the check for time extrapolation for grid functions that are
not interpolated but copied (transport_operator=op_copy). This check
needs to know the sign of delta_time, and that sign is not known here.
(For example, 3-timelevel-initialisation evolves both forwards and
backwards in time.)
darcs-hash:20050726111122-891bb-0c2130f2dfdd86c25575cbb88cb7c8ad80089eac.gz
-rw-r--r-- | Carpet/CarpetLib/src/data.cc | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/Carpet/CarpetLib/src/data.cc b/Carpet/CarpetLib/src/data.cc index 025b677a0..83761be2b 100644 --- a/Carpet/CarpetLib/src/data.cc +++ b/Carpet/CarpetLib/src/data.cc @@ -1581,14 +1581,27 @@ void data<CCTK_REAL8> << " times=" << times; CCTK_WARN (0, buf.str().c_str()); } +#if 0 + // We cannot check because we do not know delta_time } else { - if (time > max_time + eps) { - ostringstream buf; - buf << "Internal error: extrapolation into the future." - << " time=" << time - << " times=" << times; - CCTK_WARN (0, buf.str().c_str()); + if (delta_time > 0) { + if (time > max_time + eps) { + ostringstream buf; + buf << "Internal error: extrapolation into the future." + << " time=" << time + << " times=" << times; + CCTK_WARN (0, buf.str().c_str()); + } + } else { + if (time < min_time - eps) { + ostringstream buf; + buf << "Internal error: extrapolation into the past." + << " time=" << time + << " times=" << times; + CCTK_WARN (0, buf.str().c_str()); + } } +#endif } } |