Changeset 3634


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

PEM:
Few small adjustments in the script files.
JBC

Location:
trunk/LMDZ.COMMON/libf/evolution
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/changelog.txt

    r3628 r3634  
    597597== 18/02/2025 == JBC
    598598Bug correction about pressure rewriting in the "start.nc".
     599
     600== 19/02/2025 == JBC
     601Few small adjustments in the script files.
  • 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")
  • trunk/LMDZ.COMMON/libf/evolution/reshape_XIOS_output.F90

    r3584 r3634  
    4343do numyear = 1,2
    4444    write(str,'(i1.1)') numyear
    45     write(*,*) 'Reshaping of variables from "data2reshape_Y'//str//'.nc"...'
     45    write(*,*) '> Reshaping of variables from "data2reshape_Y'//str//'.nc"...'
    4646
    4747    state = nf90_open(path = "data2reshape_Y"//str//".nc",mode = nf90_nowrite,ncid = ncid1)
     
    9898    do i = 1,nvars
    9999        state = nf90_inquire_variable(ncid1,varids(i),name = namevar,xtype = xtype_var,ndims = numdims,natts = numatts)
    100         write(*,*) '> Treatment of '//namevar
     100        write(*,*) 'Treatment of '//namevar
    101101        if (state /= nf90_noerr) call handle_err(state)
    102102        allocate(dimid_var(numdims))
     
    219219
    220220    deallocate(dimids,varids,dimids_2,varids_2)
    221     write(*,*) 'Done!'
     221    write(*,*) '> "data2reshape_Y'//str//'.nc" processed!'
    222222enddo
    223223
Note: See TracChangeset for help on using the changeset viewer.