Index: trunk/LMDZ.COMMON/libf/evolution/changelog.txt
===================================================================
--- trunk/LMDZ.COMMON/libf/evolution/changelog.txt	(revision 3442)
+++ trunk/LMDZ.COMMON/libf/evolution/changelog.txt	(revision 3446)
@@ -433,2 +433,5 @@
 == 27/09/2024 == JBC
 Correction: the potential temperature teta is now updated due to the change of surface pressure at the end of the PEM to write the "restart.nc" file.
+
+== 30/09/2024 == JBC
+Correction of the launching script for a relaunch situation.
Index: trunk/LMDZ.COMMON/libf/evolution/deftank/lib_launchPEM.sh
===================================================================
--- trunk/LMDZ.COMMON/libf/evolution/deftank/lib_launchPEM.sh	(revision 3442)
+++ trunk/LMDZ.COMMON/libf/evolution/deftank/lib_launchPEM.sh	(revision 3446)
@@ -332,6 +332,6 @@
     else
         # PCM relaunch during a cycle
-        iPEM=$((($irelaunch - $nPCM_ini - 1)/$nPCM + 1))
-        il=$(echo "($irelaunch - $nPCM_ini - 1)%$nPCM + 1" | bc -l)
+        iPEM=$(echo "($iPCM - $nPCM_ini)/$nPCM + 1" | bc)
+        il=$(echo "($irelaunch - $nPCM_ini + 1)%$nPCM + 1" | bc)
         cleanfiles diags/diagpem .nc $iPEM
         cleanfiles "out_PEM/run" "" $iPEM
Index: trunk/LMDZ.COMMON/libf/evolution/pem.F90
===================================================================
--- trunk/LMDZ.COMMON/libf/evolution/pem.F90	(revision 3442)
+++ trunk/LMDZ.COMMON/libf/evolution/pem.F90	(revision 3446)
@@ -1077,5 +1077,5 @@
 enddo
 
-! III_a.2  Tsoil update (for startfi)
+! III_a.2 Tsoil update (for startfi)
 if (soil_pem) then
     call interpol_TI_PEM2PCM(ngrid,nslope,nsoilmx_PEM,nsoilmx,TI_PEM,inertiesoil)
