Index: trunk/LMDZ.MARS/deftank/pem/launch_pem.sh
===================================================================
--- trunk/LMDZ.MARS/deftank/pem/launch_pem.sh	(revision 3047)
+++ trunk/LMDZ.MARS/deftank/pem/launch_pem.sh	(revision 3050)
@@ -51,12 +51,4 @@
 if [ ! -f "run_GCM.def" ]; then
     echo "Error: file \"run_GCM.def\" does not exist in $dir!"
-    exit 1
-fi
-if [ ! -f "diagfi_PEM.def" ]; then
-    echo "Error: file \"diagfi_PEM.def\" does not exist in $dir!"
-    exit 1
-fi
-if [ ! -f "diagfi_GCM.def" ]; then
-    echo "Error: file \"diagfi_GCM.def\" does not exist in $dir!"
     exit 1
 fi
@@ -118,5 +110,5 @@
     cp run_GCM.def run.def
     rm diagfi.def
-    if [ ! -f "diagfi_GCM.def" ]; then
+    if [ -f "diagfi_GCM.def" ]; then
         cp diagfi_GCM.def diagfi.def
     fi
@@ -146,4 +138,8 @@
             cp restart.nc starts/restart${iGCM}.nc
             mv restart.nc start.nc
+        fi
+        if [ -f "restart1D.txt" ]; then
+            cp restart1D.txt starts/restart1D${iGCM}.txt
+            mv restart1D.txt start1D.txt
         fi
         if ls profile_out_* 1> /dev/null 2>&1; then
@@ -165,12 +161,18 @@
     done
     echo "Done!"
-     #--- Running PEM
+    #--- Running PEM
     echo "Run PEM $iPEM..."
     cp run_PEM.def run.def
     rm diagfi.def
-    if [ ! -f "diagfi_PEM.def" ]; then
+    if [ -f "diagfi_PEM.def" ]; then
         cp diagfi_PEM.def diagfi.def
     fi
     mv startfi.nc startfi_evol.nc
+    if [ -f "start.nc" ]; then
+        cp start.nc start_evol.nc
+    fi
+    #if [ -f "start1D.txt" ]; then
+    #    cp start1D.txt start1D.txt
+    #fi
     ./$exePEM > out_runPEM${iPEM} 2>&1
     if [ ! -f "restartfi_evol.nc" ]; then # Check if run ended abnormally
