- Timestamp:
- Nov 28, 2025, 5:38:44 PM (2 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/deftank/lib_launchPEM.sh
r3977 r3980 290 290 291 291 # 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.txt292 echo $i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini > launchPEM.info 293 293 } 294 294 … … 474 474 i_myear=0 475 475 fi 476 sed -i "1s/.*/$i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini/" info_PEM.txt476 sed -i "1s/.*/$i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini/" launchPEM.info 477 477 cleanfiles diags/diagpem .nc $(($iPEM - 1)) 478 478 cleanfiles diags/diagsoilpem .nc $(($iPEM - 1)) … … 504 504 il=$(echo "($irelaunch - $nPCM_ini + 1)%$nPCM + 1" | bc) 505 505 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) 507 507 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.txt508 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 511 511 cleanfiles diags/diagpem .nc $(($iPEM - 1)) 512 512 cleanfiles diags/diagsoilpem .nc $(($iPEM - 1)) … … 539 539 iPEM=$(echo "$irelaunch + 1" | bc) 540 540 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.txt541 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 543 543 cleanfiles diags/diagfi .nc $(($iPCM - 1)) 544 544 cleanfiles diags/diagsoil .nc $(($iPCM - 1))
Note: See TracChangeset
for help on using the changeset viewer.
