Index: trunk/LMDZ.COMMON/libf/evolution/deftank/PEMrun.job
===================================================================
--- trunk/LMDZ.COMMON/libf/evolution/deftank/PEMrun.job	(revision 3416)
+++ trunk/LMDZ.COMMON/libf/evolution/deftank/PEMrun.job	(revision 3417)
@@ -5,5 +5,7 @@
 #SBATCH --constraint=GENOA
 ### Number of Nodes to use
+#SBATCH --nodes=1
 #SBATCH --ntasks=1
+#SBATCH --cpus-per-task=1
 ###SBATCH --exclusive
 #SBATCH --output=jobPEM_%j.out
Index: trunk/LMDZ.COMMON/libf/evolution/deftank/launchPEM.sh
===================================================================
--- trunk/LMDZ.COMMON/libf/evolution/deftank/launchPEM.sh	(revision 3416)
+++ trunk/LMDZ.COMMON/libf/evolution/deftank/launchPEM.sh	(revision 3417)
@@ -81,7 +81,7 @@
             if [ $relaunch = "PCM" ]; then
                 echo "What is the number of the PCM run?"
-                echo "It should be between 1 and $((iPCM - 1))."
+                echo "It should be between 1 and $(( $((iPCM - 1)) > 1 ? $((iPCM - 1)) : 1 ))."
                 read irelaunch
-                if [ 0 -lt $irelaunch ] && [ $irelaunch -lt $iPCM ]; then
+                if [ 1 -le $irelaunch ] && [ $irelaunch -le $(( $((iPCM - 1)) > 1 ? $((iPCM - 1)) : 1 )) ]; then
                     break
                 else
@@ -90,7 +90,7 @@
             else
                 echo "What is the number of the PEM run?"
-                echo "It should be between 1 and $((iPEM - 1))."
+                echo "It should be between 1 and $(( $((iPEM - 1)) > 1 ? $((iPEM - 1)) : 1 ))."
                 read irelaunch
-                if [ 0 -lt $irelaunch ] && [ $irelaunch -lt $iPEM ]; then
+                if [ 1 -le $irelaunch ] && [ $irelaunch -le $(( $((iPEM - 1)) > 1 ? $((iPEM - 1)) : 1 )) ]; then
                     break
                 else
