Ignore:
Timestamp:
Oct 3, 2023, 11:25:57 AM (15 months ago)
Author:
jbclement
Message:

PEM:
Following the commits r3066 and r3067, the PEM initialization in 1D has been adapted.
JBC

File:
1 edited

Legend:

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

    r3065 r3068  
    1616# Path to the arch.env to source:
    1717source ../trunk/LMDZ.COMMON/arch.env
     18
     19# Save the current value of LC_NUMERIC and set it to a locale that uses a dot as the decimal separator
     20OLD_LC_NUMERIC=$LC_NUMERIC
     21LC_NUMERIC=en_US.UTF-8
    1822
    1923#------- Modify here the number of Earth years to be simulated ---------
     
    106110    #--- Loop to run GCM year by year
    107111    cp run_GCM.def run.def
    108     rm diagfi.def
     112    if [ -f "diagfi.def" ]; then
     113        rm diagfi.def
     114    fi
    109115    if [ -f "diagfi_GCM.def" ]; then
    110116        cp diagfi_GCM.def diagfi.def
     
    154160    echo "Run PEM $iPEM..."
    155161    cp run_PEM.def run.def
    156     rm diagfi.def
     162    if [ -f "diagfi.def" ]; then
     163        rm diagfi.def
     164    fi
    157165    if [ -f "diagfi_PEM.def" ]; then
    158166        cp diagfi_PEM.def diagfi.def
     
    191199rm tmp_PEMyears.txt
    192200
     201# Restore the previous value of LC_NUMERIC
     202LC_NUMERIC=$OLD_LC_NUMERIC
     203
    193204#----------------- Preparation for relaunch if needed ------------------
    194205#echo "Reinitializing starting files..."
Note: See TracChangeset for help on using the changeset viewer.