aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnetter <schnetter@b61c5cb5-eaca-4651-9a7a-d64986f99364>2003-11-05 16:03:12 +0000
committerschnetter <schnetter@b61c5cb5-eaca-4651-9a7a-d64986f99364>2003-11-05 16:03:12 +0000
commitd61946959b3663d95b31677378c0681a0eec303a (patch)
treeba660f90eae7b7379bf9392fe722f88318cd1636
parent82df20c594416545a7e32139298471cebe3fff33 (diff)
Allow for a small fudge factor when testing for cctk_final_time.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@422 b61c5cb5-eaca-4651-9a7a-d64986f99364
-rw-r--r--src/Evolve.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Evolve.c b/src/Evolve.c
index 298b27a..765b47d 100644
--- a/src/Evolve.c
+++ b/src/Evolve.c
@@ -210,11 +210,11 @@ static int DoneMainLoop (const cGH *GH, CCTK_REAL simulation_time,int iteration)
if (cctk_initial_time < cctk_final_time)
{
- max_simulation_time_reached = simulation_time >= cctk_final_time;
+ max_simulation_time_reached = simulation_time >= cctk_final_time - 1.0e-6 * GH->cctk_delta_time;
}
else
{
- max_simulation_time_reached = simulation_time <= cctk_final_time;
+ max_simulation_time_reached = simulation_time <= cctk_final_time - 1.0e-6 * GH->cctk_delta_time;
}
max_runtime_reached = 0;