- Timestamp:
- Sep 16, 2024, 6:18:30 PM (2 months ago)
- Location:
- trunk/LMDZ.COMMON/libf/evolution
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/changelog.txt
r3426 r3428 419 419 == 06/09/2024 == JBC 420 420 Modification in the way of updating the soil temperatures to improve the computation time + Small correction in the calculation of 'timestep'. 421 422 == 16/09/2024 == JBC 423 Corrections and improvements for the launching script. -
trunk/LMDZ.COMMON/libf/evolution/deftank/clean.sh
r3394 r3428 33 33 cp starts/start1D.txt . 34 34 fi 35 if [ -f "starts/startpem.nc" ]; then 36 cp starts/startpem.nc . 37 fi 35 38 # Cleaning of files in the sub-folders 36 39 rm -f diags/* -
trunk/LMDZ.COMMON/libf/evolution/deftank/lib_launchPEM.sh
r3403 r3428 151 151 elif [ -f "star1D.nc" ]; then 152 152 cp star1D.txt starts/ 153 fi 154 if [ -f "startpem.nc" ]; then 155 cp startpem.nc starts/ 153 156 fi 154 157 … … 317 320 else 318 321 # PCM relaunch during a cycle 319 iPEM=$((($irelaunch - $nPCM_ini )/$nPCM + 1))320 il=$(echo "($irelaunch - $nPCM_ini )%$nPCM" | bc -l)322 iPEM=$((($irelaunch - $nPCM_ini - 1)/$nPCM + 1)) 323 il=$(echo "($irelaunch - $nPCM_ini - 1)%$nPCM + 1" | bc -l) 321 324 cleanfiles diags/diagpem .nc $iPEM 322 325 cleanfiles "out_PEM/run" "" $iPEM … … 326 329 cleanfiles starts/restartpem .nc $iPEM 327 330 cp starts/restartpem${iPEM}.nc startpem.nc 328 if [ $il -eq $(($nPCM - 1)) ]; then 331 if [ $il -eq $(($nPCM - 1)) ]; then # Second to last PCM run 329 332 i_myear=$(($(awk "NR==$iPEM {print \$1}" "info_PEM.txt") + $il)) 330 333 sed -i "1s/.*/$i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini/" info_PEM.txt 331 334 cp diags/data2reshape${irelaunch}.nc data2reshape_Y1.nc 332 335 cyclelaunch $1 $nPCM $il 333 elif [ $il -eq 0 ]; then336 elif [ $il -eq $nPCM ]; then # Last PCM run so the next job is a PEM run 334 337 i_myear=$(($(awk "NR==$iPEM {print \$1}" "info_PEM.txt") + $nPCM)) 335 338 sed -i "1s/.*/$i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini/" info_PEM.txt 336 339 cp diags/data2reshape$(($irelaunch - 1)).nc data2reshape_Y1.nc 337 340 cp diags/data2reshape${irelaunch}.nc data2reshape_Y2.nc 338 submitPEM $1 # The next job is a PEM run341 submitPEM $1 339 342 else 340 343 i_myear=$(($(awk "NR==$iPEM {print \$1}" "info_PEM.txt") + $il)) … … 349 352 relaunchPEM() { 350 353 iPEM=$irelaunch 351 iPCM=$(($nPCM_ini + ($nPCM - 1)*$irelaunch+ 1))354 iPCM=$(($nPCM_ini + $nPCM*($irelaunch - 1) + 1)) 352 355 i_myear=$(awk "NR==$(($iPEM + 1)) {print \$1}" "info_PEM.txt") 353 356 sed -i "1s/.*/$i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini/" info_PEM.txt
Note: See TracChangeset
for help on using the changeset viewer.