Ignore:
Timestamp:
Nov 14, 2024, 1:57:43 PM (8 days ago)
Author:
jbclement
Message:

PEM:
Committing the right correction in previous commit (r33516) would have been better...
JBC

Location:
trunk/LMDZ.COMMON/libf/evolution
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/changelog.txt

    r3516 r3517  
    486486== 14/11/2024 == JBC
    487487Small corrections related to r3498 (time step from integer to real) for the launching script + making a proper initilization of 'year_bp_ini' in case of there is no orbital evolution.
     488
     489== 14/11/2024 == JBC
     490Committing the right correction in previous commit (r33516) would have been better...
  • trunk/LMDZ.COMMON/libf/evolution/conf_pem.F90

    r3516 r3517  
    135135    write(*,*) 'Ice table is asked to be computed both by the equilibrium and dynamic method.'
    136136    write(*,*) 'The dynamic method is then chosen.'
    137     icetable_dynamic = .false.
     137    icetable_equilibrium = .false.
    138138endif
    139139
  • trunk/LMDZ.COMMON/libf/evolution/deftank/lib_launchPEM.sh

    r3516 r3517  
    5252
    5353    if [ -v n_mars_years ] && [ ! -z "$n_mars_years" ]; then
    54         if [ $(echo "$n_mars_years < 0." | bc -l) ]; then
     54        if [ $(echo "$n_mars_years < 0." | bc -l) -eq 1 ]; then
    5555            echo "Error: the value of 'n_mars_years' must be >0!"
    5656            errlaunch
    5757        fi
    5858    elif [ -v n_earth_years ] && [ ! -z "$n_earth_years" ]; then
    59         if [ $(echo "$n_earth_years < 0." | bc -l) ]; then
     59        if [ $(echo "$n_earth_years < 0." | bc -l) -eq 1 ]; then
    6060            echo "Error: the value of 'n_earth_years' must be >0!"
    6161            errlaunch
     
    168168        ii=$3
    169169    fi
    170     if [ $(echo "$i_myear < $n_myear" | bc -l) ]; then
     170    if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; 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 [ $(echo "$i_myear < $n_myear" | bc -l) ]; then
     195        if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; 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 [ $(echo "$i_myear < $n_myear" | bc -l) ]; then
     221    if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then
    222222        echo "Run PEM $iPEM"
    223223        if [ $1 -eq 0 ]; then # Mode: processing scripts
     
    248248
    249249    # PEM run
    250     if [ $(echo "$i_myear < $n_myear" | bc -l) ]; then
     250    if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; 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.