Ignore:
Timestamp:
Nov 28, 2025, 5:38:44 PM (2 days ago)
Author:
jbclement
Message:

PEM:
Renaming the file "info_PEM.txt" into "launchPEM.info".
JBC

File:
1 edited

Legend:

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

    r3977 r3980  
    290290
    291291    # Create a file to manage years of the chained simulation and store some info from the PEM runs
    292     echo $i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini > info_PEM.txt
     292    echo $i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini > launchPEM.info
    293293}
    294294
     
    474474            i_myear=0
    475475        fi
    476         sed -i "1s/.*/$i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini/" info_PEM.txt
     476        sed -i "1s/.*/$i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini/" launchPEM.info
    477477        cleanfiles diags/diagpem .nc $(($iPEM - 1))
    478478        cleanfiles diags/diagsoilpem .nc $(($iPEM - 1))
     
    504504        il=$(echo "($irelaunch - $nPCM_ini + 1)%$nPCM + 1" | bc)
    505505        if [ $2 -ne 0 ]; then # Counting: PCM years taken into account
    506             i_myear=$(echo "$(awk "NR==$iPEM {printf \"%s\n\", \$3}" "info_PEM.txt") + $il" | bc -l)
     506            i_myear=$(echo "$(awk "NR==$iPEM {printf \"%s\n\", \$3}" "launchPEM.info") + $il" | bc -l)
    507507        else # Counting: only PEM years count
    508             i_myear=$(awk "NR==$iPEM {printf \"%s\n\", \$3}" "info_PEM.txt")
    509         fi
    510         sed -i "1s/.*/$i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini/" info_PEM.txt
     508            i_myear=$(awk "NR==$iPEM {printf \"%s\n\", \$3}" "launchPEM.info")
     509        fi
     510        sed -i "1s/.*/$i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini/" launchPEM.info
    511511        cleanfiles diags/diagpem .nc $(($iPEM - 1))
    512512        cleanfiles diags/diagsoilpem .nc $(($iPEM - 1))
     
    539539    iPEM=$(echo "$irelaunch + 1" | bc)
    540540    iPCM=$(echo "$nPCM_ini + $nPCM*($irelaunch - 1) + 1" | bc)
    541     i_myear=$(awk "NR==$iPEM {printf \"%s\n\", \$3}" "info_PEM.txt")
    542     sed -i "1s/.*/$i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini/" info_PEM.txt
     541    i_myear=$(awk "NR==$iPEM {printf \"%s\n\", \$3}" "launchPEM.info")
     542    sed -i "1s/.*/$i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini/" launchPEM.info
    543543    cleanfiles diags/diagfi .nc $(($iPCM - 1))
    544544    cleanfiles diags/diagsoil .nc $(($iPCM - 1))
Note: See TracChangeset for help on using the changeset viewer.