aboutsummaryrefslogtreecommitdiff
path: root/Carpet
diff options
context:
space:
mode:
authorschnetter <>2004-04-07 14:55:00 +0000
committerschnetter <>2004-04-07 14:55:00 +0000
commit20dc1b0d24097731a34c1f4e71380b5eaa409abe (patch)
treee97bdd93cb5e8566ac7ef84bc4bde5b06f7fe1ca /Carpet
parentd08c87d6265696451f9122a47dd161bad8af7c51 (diff)
Comment coding tricks.
darcs-hash:20040407145522-07bb3-6514671e9b2e6227c3ec6183908a4f8f312d8d0d.gz
Diffstat (limited to 'Carpet')
-rw-r--r--Carpet/CarpetLib/src/data.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/data.cc b/Carpet/CarpetLib/src/data.cc
index 10d4a4c17..0d6b9e079 100644
--- a/Carpet/CarpetLib/src/data.cc
+++ b/Carpet/CarpetLib/src/data.cc
@@ -1,4 +1,4 @@
-// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/data.cc,v 1.48 2004/03/23 15:37:21 schnetter Exp $
+// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/data.cc,v 1.49 2004/04/07 16:55:22 schnetter Exp $
#include <assert.h>
#include <limits.h>
@@ -865,6 +865,7 @@ void data<CCTK_REAL8,3>
CCTK_REAL min_time = times[0];
CCTK_REAL max_time = times[0];
for (size_t tl=1; tl<times.size(); ++tl) {
+ // Catch broken compilers that only know min(int) and max(int)
assert (min(1.3, 1.4) > 1.2);
min_time = min(min_time, times[tl]);
max_time = max(max_time, times[tl]);
@@ -880,6 +881,7 @@ void data<CCTK_REAL8,3>
// Is it necessary to interpolate in time?
if (times.size() > 1) {
for (size_t tl=0; tl<times.size(); ++tl) {
+ // Catch broken compilers that only know abs(int)
assert (abs(1.5) > 1.4);
if (abs(times[tl] - time) < eps) {
// It is not.