Ignore:
Timestamp:
Nov 13, 2024, 11:29:52 AM (11 days ago)
Author:
jbclement
Message:

PEM:
Small correction for the launching script following the r3498 (time step from integer to real).
JBC

File:
1 edited

Legend:

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

    r3498 r3514  
    168168        ii=$3
    169169    fi
    170     if [ $i_myear -lt $n_myear ]; then
     170    if [ $(echo "$i_myear < $n_myear" | bc -l) ]; then
    171171        echo "Run PCM $iPCM: call $ii/$2..."
    172172        if [ $1 -eq 0 ]; then # Mode: processing scripts
     
    193193    fi
    194194    for ((i = $ii; i <= $2; i++)); do
    195         if [ $i_myear -lt $n_myear ]; then
     195        if [ $(echo "$i_myear < $n_myear" | bc -l) ]; then
    196196            echo "Run PCM $iPCM: call $i/$2..."
    197197            if [ $1 -eq 0 ]; then # Mode: processing scripts
     
    219219# arg1: launching mode
    220220submitPEM() {
    221     if [ $i_myear -lt $n_myear ]; then
     221    if [ $(echo "$i_myear < $n_myear" | bc -l) ]; then
    222222        echo "Run PEM $iPEM"
    223223        if [ $1 -eq 0 ]; then # Mode: processing scripts
     
    248248
    249249    # PEM run
    250     if [ $i_myear -lt $n_myear ]; then
     250    if [ $(echo "$i_myear < $n_myear" | bc -l) ]; then
    251251        echo "Run PEM $iPEM"
    252252        if [ $1 -eq 0 ]; then # Mode: processing scripts
Note: See TracChangeset for help on using the changeset viewer.