From d61946959b3663d95b31677378c0681a0eec303a Mon Sep 17 00:00:00 2001 From: schnetter Date: Wed, 5 Nov 2003 16:03:12 +0000 Subject: 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 --- src/Evolve.c | 4 ++-- 1 file 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; -- cgit v1.2.3