Ignore:
Timestamp:
Apr 25, 2024, 5:16:51 PM (8 months ago)
Author:
jbclement
Message:

PEM:
The "start" and "startfi" file names are renamed to match those from the Mars PCM. This is necessary to initialize correctly the 3D PEM with "phys_state_var_init_mod.F90".
JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/deftank/launch_pem.sh

    r3296 r3317  
    190190echo "Run PEM $iPEM..."
    191191cp run_PEM.def run.def
    192 mv startfi.nc startfi_evol.nc
    193 if [ -f "start.nc" ]; then
    194     mv start.nc start_evol.nc
    195 elif [ -f "start1D.txt" ]; then
    196     mv start1D.txt start1D_evol.txt
    197 fi
    198192./$exePEM > out_runPEM${iPEM} 2>&1
    199 if [ ! -f "restartfi_evol.nc" ]; then # Check if run ended abnormally
     193if [ ! -f "restartfi.nc" ]; then # Check if run ended abnormally
    200194    echo "Error: the run PEM $iPEM crashed!"
    201195    exit 1
     
    209203cp restartpem.nc starts/startpem${iPEM}.nc
    210204mv restartpem.nc startpem.nc
    211 cp restartfi_evol.nc starts/startfi_postPEM${iPEM}.nc
    212 mv restartfi_evol.nc startfi.nc
    213 if [ -f "restart_evol.nc" ]; then
    214     cp restart_evol.nc starts/restart_postPEM${iPEM}.nc
    215     mv restart_evol.nc start.nc
    216 elif [ -f "restart1D_evol.txt" ]; then
    217     cp restart1D_evol.txt starts/restart1D_postPEM${iPEM}.txt
    218     mv restart1D_evol.txt start1D.txt
     205cp restartfi.nc starts/startfi_postPEM${iPEM}.nc
     206mv restartfi.nc startfi.nc
     207if [ -f "restart.nc" ]; then
     208    cp restart.nc starts/restart_postPEM${iPEM}.nc
     209    mv restart.nc start.nc
     210elif [ -f "restart1D.txt" ]; then
     211    cp restart1D.txt starts/restart1D_postPEM${iPEM}.txt
     212    mv restart1D.txt start1D.txt
    219213fi
    220214((iPEM++))
     
    274268    echo "Run PEM $iPEM..."
    275269    cp run_PEM.def run.def
    276     mv startfi.nc startfi_evol.nc
    277     if [ -f "start.nc" ]; then
    278         mv start.nc start_evol.nc
    279     elif [ -f "start1D.txt" ]; then
    280         mv start1D.txt start1D_evol.txt
    281     fi
    282270    ./$exePEM > out_runPEM${iPEM} 2>&1
    283     if [ ! -f "restartfi_evol.nc" ]; then # Check if run ended abnormally
     271    if [ ! -f "restartfi.nc" ]; then # Check if run ended abnormally
    284272        echo "Error: the run PEM $iPEM crashed!"
    285273        exit 1
     
    293281    cp restartpem.nc starts/startpem${iPEM}.nc
    294282    mv restartpem.nc startpem.nc
    295     cp restartfi_evol.nc starts/startfi_postPEM${iPEM}.nc
    296     mv restartfi_evol.nc startfi.nc
    297     if [ -f "restart_evol.nc" ]; then
    298         cp restart_evol.nc starts/restart_postPEM${iPEM}.nc
    299         mv restart_evol.nc start.nc
    300     elif [ -f "restart1D_evol.txt" ]; then
    301         cp restart1D_evol.txt starts/restart1D_postPEM${iPEM}.txt
    302         mv restart1D_evol.txt start1D.txt
     283    cp restartfi.nc starts/startfi_postPEM${iPEM}.nc
     284    mv restartfi.nc startfi.nc
     285    if [ -f "restart.nc" ]; then
     286        cp restart.nc starts/restart_postPEM${iPEM}.nc
     287        mv restart.nc start.nc
     288    elif [ -f "restart1D.txt" ]; then
     289        cp restart1D.txt starts/restart1D_postPEM${iPEM}.txt
     290        mv restart1D.txt start1D.txt
    303291    fi
    304292    ((iPEM++))
Note: See TracChangeset for help on using the changeset viewer.