Index: trunk/LMDZ.COMMON/libf/evolution/changelog.txt
===================================================================
--- trunk/LMDZ.COMMON/libf/evolution/changelog.txt	(revision 3628)
+++ trunk/LMDZ.COMMON/libf/evolution/changelog.txt	(revision 3634)
@@ -597,2 +597,5 @@
 == 18/02/2025 == JBC
 Bug correction about pressure rewriting in the "start.nc".
+
+== 19/02/2025 == JBC
+Few small adjustments in the script files.
Index: trunk/LMDZ.COMMON/libf/evolution/deftank/PCMrun.job
===================================================================
--- trunk/LMDZ.COMMON/libf/evolution/deftank/PCMrun.job	(revision 3628)
+++ trunk/LMDZ.COMMON/libf/evolution/deftank/PCMrun.job	(revision 3634)
@@ -35,5 +35,5 @@
 # Running the PCM
 read i_myear n_myear convert_years iPCM iPEM nPCM nPCM_ini < info_PEM.txt
-echo "Run PCM $iPCM is starting."
+echo "Run \"PCM $iPCM\" is starting."
 cp run_PCM.def run.def
 eval "$exe_cmd > out_runPCM${iPCM} 2>&1"
Index: trunk/LMDZ.COMMON/libf/evolution/deftank/PEMrun.job
===================================================================
--- trunk/LMDZ.COMMON/libf/evolution/deftank/PEMrun.job	(revision 3628)
+++ trunk/LMDZ.COMMON/libf/evolution/deftank/PEMrun.job	(revision 3634)
@@ -42,5 +42,5 @@
 # Running the PEM
 read i_myear n_myear convert_years iPCM iPEM nPCM nPCM_ini < info_PEM.txt
-echo "Run PEM $iPEM is starting."
+echo "Run \"PEM $iPEM\" is starting."
 cp run_PEM.def run.def
 eval "./$exePEM $arg_pem > out_runPEM${iPEM} 2>&1"
Index: trunk/LMDZ.COMMON/libf/evolution/deftank/launchPEM.sh
===================================================================
--- trunk/LMDZ.COMMON/libf/evolution/deftank/launchPEM.sh	(revision 3628)
+++ trunk/LMDZ.COMMON/libf/evolution/deftank/launchPEM.sh	(revision 3634)
@@ -110,5 +110,5 @@
         exec >> log_launchPEM.txt 2>&1
         echo
-        echo "This is a relaunch for the PEM simulation from the run $relaunch$irelaunch."
+        echo "This is a relaunch for the PEM simulation from the run \"$relaunch $irelaunch\"."
         date
         checklaunch
Index: trunk/LMDZ.COMMON/libf/evolution/deftank/lib_launchPEM.sh
===================================================================
--- trunk/LMDZ.COMMON/libf/evolution/deftank/lib_launchPEM.sh	(revision 3628)
+++ trunk/LMDZ.COMMON/libf/evolution/deftank/lib_launchPEM.sh	(revision 3634)
@@ -172,5 +172,5 @@
     fi
     if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then
-        echo "Run PCM $iPCM: call $ii/$3..."
+        echo "Run \"PCM $iPCM\": call $ii/$3..."
         if [ $1 -eq 0 ]; then # Mode: processing scripts
             sed -i "s/^k=[0-9]\+$/k=$(echo "3 - $nPCM_ini" | bc)/" PCMrun.job
@@ -199,5 +199,5 @@
     for ((i = $ii; i <= $3; i++)); do
         if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then
-            echo "Run PCM $iPCM: call $i/$3..."
+            echo "Run \"PCM $iPCM\": call $i/$3..."
             if [ $1 -eq 0 ]; then # Mode: processing scripts
                 sed -i "s/^k=[0-9]\+$/k=$(echo "$i + 2 - $nPCM_ini" | bc)/" PCMrun.job
@@ -227,5 +227,5 @@
 submitPEM() {
     if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then
-        echo "Run PEM $iPEM"
+        echo "Run \"PEM $iPEM\""
         if [ $1 -eq 0 ]; then # Mode: processing scripts
             ./PEMrun.job
@@ -257,5 +257,5 @@
     # PEM run
     if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then
-        echo "Run PEM $iPEM"
+        echo "Run \"PEM $iPEM\""
         if [ $1 -eq 0 ]; then # Mode: processing scripts
             ./PEMrun.job
@@ -348,5 +348,5 @@
         il=$(echo "($irelaunch - $nPCM_ini + 1)%$nPCM + 1" | bc)
         if [ $2 -ne 0 ]; then # Counting: PCM runs taken into account
-            i_myear=$(($(awk "NR==$iPEM {printf \"%s\n\", \$3}" "info_PEM.txt") + $il))
+            i_myear=$(echo "$(awk "NR==$iPEM {printf \"%s\n\", \$3}" "info_PEM.txt") + $il" | bc -l)
         else # Counting: only PEM runs count
             i_myear=$(awk "NR==$iPEM {printf \"%s\n\", \$3}" "info_PEM.txt")
Index: trunk/LMDZ.COMMON/libf/evolution/reshape_XIOS_output.F90
===================================================================
--- trunk/LMDZ.COMMON/libf/evolution/reshape_XIOS_output.F90	(revision 3628)
+++ trunk/LMDZ.COMMON/libf/evolution/reshape_XIOS_output.F90	(revision 3634)
@@ -43,5 +43,5 @@
 do numyear = 1,2
     write(str,'(i1.1)') numyear
-    write(*,*) 'Reshaping of variables from "data2reshape_Y'//str//'.nc"...'
+    write(*,*) '> Reshaping of variables from "data2reshape_Y'//str//'.nc"...'
 
     state = nf90_open(path = "data2reshape_Y"//str//".nc",mode = nf90_nowrite,ncid = ncid1)
@@ -98,5 +98,5 @@
     do i = 1,nvars
         state = nf90_inquire_variable(ncid1,varids(i),name = namevar,xtype = xtype_var,ndims = numdims,natts = numatts)
-        write(*,*) '> Treatment of '//namevar
+        write(*,*) 'Treatment of '//namevar
         if (state /= nf90_noerr) call handle_err(state)
         allocate(dimid_var(numdims))
@@ -219,5 +219,5 @@
 
     deallocate(dimids,varids,dimids_2,varids_2)
-    write(*,*) 'Done!'
+    write(*,*) '> "data2reshape_Y'//str//'.nc" processed!'
 enddo
 
