- Timestamp:
- Jul 21, 2025, 1:55:12 PM (13 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/deftank/lib_launchPEM.sh
r3859 r3861 40 40 else 41 41 echo "Error: neither SLURM nor TORQUE/PBS is installed on $machine!" 42 echo "You need to adapt the script to your job scheduler ."42 echo "You need to adapt the script to your job scheduler or set 'mode' to 0." 43 43 errlaunch 44 44 fi … … 125 125 126 126 if [ -v n_mars_years ] && [ ! -z "$n_mars_years" ]; then 127 if [ $(echo "$n_mars_years < 0." | bc -l) -eq 1 ]; then128 echo "Error: the value of 'n_mars_years' must be >0!"127 if [ $(echo "$n_mars_years <= 0." | bc -l) -eq 1 ]; then 128 echo "Error: 'n_mars_years' must be > 0!" 129 129 errlaunch 130 130 fi 131 131 elif [ -v n_earth_years ] && [ ! -z "$n_earth_years" ]; then 132 if [ $(echo "$n_earth_years < 0." | bc -l) -eq 1 ]; then133 echo "Error: the value of 'n_earth_years' must be >0!"132 if [ $(echo "$n_earth_years <= 0." | bc -l) -eq 1 ]; then 133 echo "Error: 'n_earth_years' must be > 0!" 134 134 errlaunch 135 135 fi 136 136 else 137 echo "Error: no number of years to be simulated has beenset!"137 echo "Error: the number of years to be simulated is not set!" 138 138 errlaunch 139 139 fi 140 140 if [ $nPCM_ini -lt 2 ] || [ -z "$nPCM_ini" ]; then 141 echo "Error: the value of 'nPCM_ini' must be >1!"141 echo "Error: 'nPCM_ini' must be >= 2!" 142 142 errlaunch 143 143 fi 144 144 if [ $nPCM -lt 2 ] || [ -z "$nPCM" ]; then 145 echo "Error: the value of 'nPCM' must be >1!"145 echo "Error: 'nPCM' must be >= 2!" 146 146 errlaunch 147 147 fi … … 178 178 errlaunch 179 179 fi 180 if [ ! -d "out_PCM" ]; then 181 mkdir out_PCM 182 fi 183 if [ ! -d "out_PEM" ]; then 184 mkdir out_PEM 180 if [ ! -d "logs" ]; then 181 mkdir logs 185 182 fi 186 183 if [ ! -d "starts" ]; then … … 382 379 cleanfiles diags/diagsoil .nc $irelaunch 383 380 cleanfiles diags/data2reshape .nc $irelaunch 384 cleanfiles "out_PCM/run" ""$irelaunch381 cleanfiles logs/runPCM .log $irelaunch 385 382 cleanfiles starts/restart1D .txt $irelaunch 386 383 cleanfiles starts/restart .nc $irelaunch … … 403 400 cleanfiles diags/diagpem .nc $(($iPEM - 1)) 404 401 cleanfiles diags/diagsoilpem .nc $(($iPEM - 1)) 405 cleanfiles "out_PEM/run" ""$(($iPEM - 1))402 cleanfiles logs/runPEM .log $(($iPEM - 1)) 406 403 cleanfiles starts/restart1D_postPEM .txt $(($iPEM - 1)) 407 404 cleanfiles starts/restart_postPEM .nc $(($iPEM - 1)) … … 434 431 cleanfiles diags/diagpem .nc $(($iPEM - 1)) 435 432 cleanfiles diags/diagsoilpem .nc $(($iPEM - 1)) 436 cleanfiles "out_PEM/run" ""$(($iPEM - 1))433 cleanfiles logs/runPEM .log $(($iPEM - 1)) 437 434 cleanfiles starts/restart1D_postPEM .txt $(($iPEM - 1)) 438 435 cleanfiles starts/restart_postPEM .nc $(($iPEM - 1)) … … 463 460 cleanfiles diags/diagfi .nc $(($iPCM - 1)) 464 461 cleanfiles diags/diagsoil .nc $(($iPCM - 1)) 465 cleanfiles "out_PCM/run" ""$(($iPCM - 1))462 cleanfiles logs/runPCM .log $(($iPCM - 1)) 466 463 cleanfiles starts/restart1D .txt $(($iPCM - 1)) 467 464 cleanfiles starts/restart .nc $(($iPCM - 1)) … … 470 467 cleanfiles diags/diagpem .nc $irelaunch 471 468 cleanfiles diags/diagsoilpem .nc $irelaunch 472 cleanfiles "out_PEM/run" ""$irelaunch469 cleanfiles logs/runPEM .log $irelaunch 473 470 cleanfiles starts/restart1D_postPEM .txt $irelaunch 474 471 cleanfiles starts/restart_postPEM .nc $irelaunch
Note: See TracChangeset
for help on using the changeset viewer.