Changeset 3517 for trunk/LMDZ.COMMON/libf/evolution/deftank
- Timestamp:
- Nov 14, 2024, 1:57:43 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/deftank/lib_launchPEM.sh
r3516 r3517 52 52 53 53 if [ -v n_mars_years ] && [ ! -z "$n_mars_years" ]; then 54 if [ $(echo "$n_mars_years < 0." | bc -l) ]; then54 if [ $(echo "$n_mars_years < 0." | bc -l) -eq 1 ]; then 55 55 echo "Error: the value of 'n_mars_years' must be >0!" 56 56 errlaunch 57 57 fi 58 58 elif [ -v n_earth_years ] && [ ! -z "$n_earth_years" ]; then 59 if [ $(echo "$n_earth_years < 0." | bc -l) ]; then59 if [ $(echo "$n_earth_years < 0." | bc -l) -eq 1 ]; then 60 60 echo "Error: the value of 'n_earth_years' must be >0!" 61 61 errlaunch … … 168 168 ii=$3 169 169 fi 170 if [ $(echo "$i_myear < $n_myear" | bc -l) ]; then170 if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then 171 171 echo "Run PCM $iPCM: call $ii/$2..." 172 172 if [ $1 -eq 0 ]; then # Mode: processing scripts … … 193 193 fi 194 194 for ((i = $ii; i <= $2; i++)); do 195 if [ $(echo "$i_myear < $n_myear" | bc -l) ]; then195 if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then 196 196 echo "Run PCM $iPCM: call $i/$2..." 197 197 if [ $1 -eq 0 ]; then # Mode: processing scripts … … 219 219 # arg1: launching mode 220 220 submitPEM() { 221 if [ $(echo "$i_myear < $n_myear" | bc -l) ]; then221 if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then 222 222 echo "Run PEM $iPEM" 223 223 if [ $1 -eq 0 ]; then # Mode: processing scripts … … 248 248 249 249 # PEM run 250 if [ $(echo "$i_myear < $n_myear" | bc -l) ]; then250 if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then 251 251 echo "Run PEM $iPEM" 252 252 if [ $1 -eq 0 ]; then # Mode: processing scripts
Note: See TracChangeset
for help on using the changeset viewer.