Ignore:
Timestamp:
Feb 19, 2025, 3:54:06 PM (4 months ago)
Author:
jbclement
Message:

PEM:
Few small adjustments in the script files.
JBC

Location:
trunk/LMDZ.COMMON/libf/evolution/deftank
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/deftank/PCMrun.job

    r3579 r3634  
    3535# Running the PCM
    3636read i_myear n_myear convert_years iPCM iPEM nPCM nPCM_ini < info_PEM.txt
    37 echo "Run PCM $iPCM is starting."
     37echo "Run \"PCM $iPCM\" is starting."
    3838cp run_PCM.def run.def
    3939eval "$exe_cmd > out_runPCM${iPCM} 2>&1"
  • trunk/LMDZ.COMMON/libf/evolution/deftank/PEMrun.job

    r3584 r3634  
    4242# Running the PEM
    4343read i_myear n_myear convert_years iPCM iPEM nPCM nPCM_ini < info_PEM.txt
    44 echo "Run PEM $iPEM is starting."
     44echo "Run \"PEM $iPEM\" is starting."
    4545cp run_PEM.def run.def
    4646eval "./$exePEM $arg_pem > out_runPEM${iPEM} 2>&1"
  • trunk/LMDZ.COMMON/libf/evolution/deftank/launchPEM.sh

    r3579 r3634  
    110110        exec >> log_launchPEM.txt 2>&1
    111111        echo
    112         echo "This is a relaunch for the PEM simulation from the run $relaunch$irelaunch."
     112        echo "This is a relaunch for the PEM simulation from the run \"$relaunch $irelaunch\"."
    113113        date
    114114        checklaunch
  • trunk/LMDZ.COMMON/libf/evolution/deftank/lib_launchPEM.sh

    r3620 r3634  
    172172    fi
    173173    if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then
    174         echo "Run PCM $iPCM: call $ii/$3..."
     174        echo "Run \"PCM $iPCM\": call $ii/$3..."
    175175        if [ $1 -eq 0 ]; then # Mode: processing scripts
    176176            sed -i "s/^k=[0-9]\+$/k=$(echo "3 - $nPCM_ini" | bc)/" PCMrun.job
     
    199199    for ((i = $ii; i <= $3; i++)); do
    200200        if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then
    201             echo "Run PCM $iPCM: call $i/$3..."
     201            echo "Run \"PCM $iPCM\": call $i/$3..."
    202202            if [ $1 -eq 0 ]; then # Mode: processing scripts
    203203                sed -i "s/^k=[0-9]\+$/k=$(echo "$i + 2 - $nPCM_ini" | bc)/" PCMrun.job
     
    227227submitPEM() {
    228228    if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then
    229         echo "Run PEM $iPEM"
     229        echo "Run \"PEM $iPEM\""
    230230        if [ $1 -eq 0 ]; then # Mode: processing scripts
    231231            ./PEMrun.job
     
    257257    # PEM run
    258258    if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then
    259         echo "Run PEM $iPEM"
     259        echo "Run \"PEM $iPEM\""
    260260        if [ $1 -eq 0 ]; then # Mode: processing scripts
    261261            ./PEMrun.job
     
    348348        il=$(echo "($irelaunch - $nPCM_ini + 1)%$nPCM + 1" | bc)
    349349        if [ $2 -ne 0 ]; then # Counting: PCM runs taken into account
    350             i_myear=$(($(awk "NR==$iPEM {printf \"%s\n\", \$3}" "info_PEM.txt") + $il))
     350            i_myear=$(echo "$(awk "NR==$iPEM {printf \"%s\n\", \$3}" "info_PEM.txt") + $il" | bc -l)
    351351        else # Counting: only PEM runs count
    352352            i_myear=$(awk "NR==$iPEM {printf \"%s\n\", \$3}" "info_PEM.txt")
Note: See TracChangeset for help on using the changeset viewer.