Index: BOL/LMDZ_Setup_amaury/lmdz_env.sh
===================================================================
--- BOL/LMDZ_Setup_amaury/lmdz_env.sh	(revision 5033)
+++ BOL/LMDZ_Setup_amaury/lmdz_env.sh	(revision 5034)
@@ -100,9 +100,9 @@
       NB_MPI_MAX=2000
       NB_OMP_MAX=200
-      NB_CORE_PER_NODE_MAX=96
+      NB_CORE_PER_NODE_MAX=192
       N_HYPERTHREADING=2
       MPICMD="srun -n"
       RUNBASHCMD="srun --label --account=$account --constraint=GENOA --ntasks-per-node=1 -n 1 --time=00:15:00 -c"
-      SUBMITCMD="sbatch --constraint=GENOA --account=$account"
+      SUBMITCMD="env $(env | grep -E "SLURM_|SBATCH_|SRUN_" | cut -d= -f1 | awk '{print "-u " $0}') sbatch --constraint=GENOA --account=$account"  # we need to remove the existing SLURM variables otherwise they lay be unexpectedly inherited by the submitted script
       ;;
     *) echo "WARNING: RUNNING THIS SCRIPT ON A LOCAL COMPUTER IS DISCOURAGED (lackluster cpus and memory)"
Index: BOL/LMDZ_Setup_amaury/script_SIMU
===================================================================
--- BOL/LMDZ_Setup_amaury/script_SIMU	(revision 5033)
+++ BOL/LMDZ_Setup_amaury/script_SIMU	(revision 5034)
@@ -20,5 +20,4 @@
 #@SP#SBATCH --ntasks=8
 #@SP#SBATCH --cpus-per-task=8
-#@SP#SBATCH --hint=nomultithread
 #@SP#SBATCH --time=00:30:00
 #@SP#SBATCH --output=outNOM_SIMU%j
@@ -28,6 +27,5 @@
 #@ADS#SBATCH --ntasks=8
 #@ADS#SBATCH --cpus-per-task=8
-#@ADS#SBATCH --ntasks-per-node=8  # TODO check how to scale this
-#@ADS#SBATCH --hint=nomultithread
+#@ADS#SBATCH --ntasks-per-node=8
 #@ADS#SBATCH --time=00:30:00
 #@ADS#SBATCH --output=outNOM_SIMU%j
Index: BOL/LMDZ_Setup_amaury/setup.sh
===================================================================
--- BOL/LMDZ_Setup_amaury/setup.sh	(revision 5033)
+++ BOL/LMDZ_Setup_amaury/setup.sh	(revision 5034)
@@ -688,5 +688,7 @@
     if [[ $ok_guide != "y" ]]; then # Running first simulation automatically except for nudging
       cat << ...eod >> tmp
-       $SUBMITCMD tmp_$SIM
+      echo "Submitting job tmp_$SIM"
+      echo "\$SUBMITCMD tmp_$SIM"
+      \$SUBMITCMD tmp_$SIM
 ...eod
     fi
