From 6773bd247b52b77f7be659f785e0a29380a5902b Mon Sep 17 00:00:00 2001
From: Antoine Hoffmann <antoine.hoffmann@epfl.ch>
Date: Mon, 13 Feb 2023 13:06:06 +0100
Subject: [PATCH] reduction of the safety time gap before stopping, now 10%
 before 20%

---
 src/tesend.F90 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tesend.F90 b/src/tesend.F90
index 7e356e9f..e908f7e7 100644
--- a/src/tesend.F90
+++ b/src/tesend.F90
@@ -43,7 +43,7 @@ SUBROUTINE tesend
   !________________________________________________________________________________
   !                   4.  Test on run time
   CALL cpu_time(tnow)
-  mlend = (1.2*(tnow-start)) .GT. maxruntime
+  mlend = (1.1*(tnow-start)) .GT. maxruntime
 
 
   CALL mpi_allreduce(mlend, nlend, 1, MPI_LOGICAL, MPI_LOR, MPI_COMM_WORLD, ierr)
-- 
GitLab