aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/Restrict.cc
diff options
context:
space:
mode:
authorschnetter <>2003-04-07 14:08:00 +0000
committerschnetter <>2003-04-07 14:08:00 +0000
commit7c4da9ddb2d879601f77ef5f25316e695ef1ec5f (patch)
tree810f749530832b04d8b00a2b92d87aa1879e3a26 /Carpet/Carpet/src/Restrict.cc
parentd945a4ca407aa56d773bf1e41a2011e86e1e6538 (diff)
Do not update the time by repeatedly adding to it, because this leads
Do not update the time by repeatedly adding to it, because this leads to roundoff errors. Instead, calculate it explicitely from the initial time, time step size, and iteration number. darcs-hash:20030407140831-07bb3-c8d682fc1805eb8f28dc36f28fcdf356550203d5.gz
Diffstat (limited to 'Carpet/Carpet/src/Restrict.cc')
-rw-r--r--Carpet/Carpet/src/Restrict.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/Carpet/src/Restrict.cc b/Carpet/Carpet/src/Restrict.cc
index 426e57b92..6f6ebd1d0 100644
--- a/Carpet/Carpet/src/Restrict.cc
+++ b/Carpet/Carpet/src/Restrict.cc
@@ -10,7 +10,7 @@
#include "carpet.hh"
extern "C" {
- static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/Carpet/src/Restrict.cc,v 1.13 2003/01/03 14:11:56 schnetter Exp $";
+ static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/Carpet/src/Restrict.cc,v 1.14 2003/04/07 16:08:31 schnetter Exp $";
CCTK_FILEVERSION(Carpet_Carpet_Restrict_cc);
}
@@ -43,7 +43,7 @@ namespace Carpet {
if (tl==0) {
const CCTK_REAL time1 = tt->time (tl, reflevel, mglevel);
const CCTK_REAL time2 = cgh->cctk_time / base_delta_time;
- assert (fabs(time1 - time2) < 1e-10);
+ assert (fabs(time1 - time2) < 1e-12);
}
if (mglevel > 0) {