Ignore:
Timestamp:
Sep 26, 2023, 3:57:38 PM (17 months ago)
Author:
jbclement
Message:

Mars PEM:
Minor changes concerning the form of the code in the PEM.
JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/deftank/pem/launch_pem.sh

    r3047 r3050  
    5151if [ ! -f "run_GCM.def" ]; then
    5252    echo "Error: file \"run_GCM.def\" does not exist in $dir!"
    53     exit 1
    54 fi
    55 if [ ! -f "diagfi_PEM.def" ]; then
    56     echo "Error: file \"diagfi_PEM.def\" does not exist in $dir!"
    57     exit 1
    58 fi
    59 if [ ! -f "diagfi_GCM.def" ]; then
    60     echo "Error: file \"diagfi_GCM.def\" does not exist in $dir!"
    6153    exit 1
    6254fi
     
    118110    cp run_GCM.def run.def
    119111    rm diagfi.def
    120     if [ ! -f "diagfi_GCM.def" ]; then
     112    if [ -f "diagfi_GCM.def" ]; then
    121113        cp diagfi_GCM.def diagfi.def
    122114    fi
     
    146138            cp restart.nc starts/restart${iGCM}.nc
    147139            mv restart.nc start.nc
     140        fi
     141        if [ -f "restart1D.txt" ]; then
     142            cp restart1D.txt starts/restart1D${iGCM}.txt
     143            mv restart1D.txt start1D.txt
    148144        fi
    149145        if ls profile_out_* 1> /dev/null 2>&1; then
     
    165161    done
    166162    echo "Done!"
    167      #--- Running PEM
     163    #--- Running PEM
    168164    echo "Run PEM $iPEM..."
    169165    cp run_PEM.def run.def
    170166    rm diagfi.def
    171     if [ ! -f "diagfi_PEM.def" ]; then
     167    if [ -f "diagfi_PEM.def" ]; then
    172168        cp diagfi_PEM.def diagfi.def
    173169    fi
    174170    mv startfi.nc startfi_evol.nc
     171    if [ -f "start.nc" ]; then
     172        cp start.nc start_evol.nc
     173    fi
     174    #if [ -f "start1D.txt" ]; then
     175    #    cp start1D.txt start1D.txt
     176    #fi
    175177    ./$exePEM > out_runPEM${iPEM} 2>&1
    176178    if [ ! -f "restartfi_evol.nc" ]; then # Check if run ended abnormally
Note: See TracChangeset for help on using the changeset viewer.