Ignore:
Timestamp:
Dec 6, 2024, 5:47:19 PM (5 weeks ago)
Author:
jbclement
Message:

PEM:
Small fixes to initialize and output ice table-related variables and in the launching script.
JBC

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

Legend:

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

    r3498 r3537  
    114114            echo "The number of PCM runs between each PEM run has been modified from $nPCM_old to $nPCM."
    115115        fi
    116         if [ $n_myear -ne $n_myear_old ]; then
     116        if [ "$(echo "$n_myear != $n_myear_old" | bc)" -eq 1 ]; then
    117117            echo "The number of initial PCM runs has been modified from $n_myear_old to $n_myear."
    118118        fi
  • TabularUnified trunk/LMDZ.COMMON/libf/evolution/deftank/lib_launchPEM.sh

    r3518 r3537  
    295295    iPCM=$(($irelaunch + 1))
    296296    cleanfiles diags/diagfi .nc $irelaunch
     297    cleanfiles diags/diagsoil .nc $irelaunch
    297298    cleanfiles diags/data2reshape .nc $irelaunch
    298299    cleanfiles "out_PCM/run" "" $irelaunch
     
    310311        iPEM=1
    311312        cleanfiles diags/diagpem .nc $iPEM
     313        cleanfiles diags/diagsoilpem .nc $iPEM
    312314        cleanfiles "out_PEM/run" "" $iPEM
    313315        cleanfiles starts/restart1D_postPEM .txt $iPEM
     
    333335        il=$(echo "($irelaunch - $nPCM_ini + 1)%$nPCM + 1" | bc)
    334336        cleanfiles diags/diagpem .nc $iPEM
     337        cleanfiles diags/diagsoilpem .nc $iPEM
    335338        cleanfiles "out_PEM/run" "" $iPEM
    336339        cleanfiles starts/restart1D_postPEM .txt $iPEM
     
    366369    sed -i "1s/.*/$i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini/" info_PEM.txt
    367370    cleanfiles diags/diagfi .nc $(($iPCM - 1))
     371    cleanfiles diags/diagsoil .nc $(($iPCM - 1))
    368372    cleanfiles "out_PCM/run" "" $(($iPCM - 1))
    369373    cleanfiles starts/restart1D .txt $(($iPCM - 1))
     
    372376    cleanfiles diags/data2reshape .nc $(($iPCM - 1))
    373377    cleanfiles diags/diagpem .nc $irelaunch
     378    cleanfiles diags/diagsoilpem .nc $irelaunch
    374379    cleanfiles "out_PEM/run" "" $irelaunch
    375380    cleanfiles starts/restart1D_postPEM .txt $irelaunch
Note: See TracChangeset for help on using the changeset viewer.