Ignore:
Timestamp:
Sep 18, 2024, 4:09:02 PM (3 months ago)
Author:
jbclement
Message:

PEM:

  • Correction of the way stopping criteria interact with each other because of a situation where the algorithm does not stop even though a stopping criterion was met.
  • Update and corrections for the layering algorithm: there is now only one subsurface stratum.
  • Improvement of the launching script in the case of the 1D PEM: it ends automatically after PCM/PEM run crash.

JBC

File:
1 edited

Legend:

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

    r3428 r3430  
    175175            sed -i "s/^k=[0-9]\+$/k=$(echo "3 - $nPCM_ini" | bc -l)/" PCMrun.job
    176176            ./PCMrun.job
     177            if [ $? -ne 0 ]; then
     178                errlaunch
     179            fi
    177180        else # 3D model
    178181            cp PCMrun.job PCMrun${iPCM}.job
     
    197200                sed -i "s/^k=[0-9]\+$/k=$(echo "$i + 2 - $nPCM_ini" | bc -l)/" PCMrun.job
    198201                ./PCMrun.job
     202                if [ $? -ne 0 ]; then
     203                    errlaunch
     204                fi
    199205            else # 3D model
    200206                cp PCMrun.job PCMrun${iPCM}.job
     
    219225        if [ $1 -eq 1 ]; then # 1D model
    220226            ./PEMrun.job
     227            if [ $? -ne 0 ]; then
     228                errlaunch
     229            fi
    221230        else # 3D model
    222231            sed -i -E "s/($name_job[^0-9]*[0-9]*[^0-9]*)[0-9]+$/\1${iPEM}/" PEMrun.job
     
    245254        if [ $1 -eq 1 ]; then # 1D model
    246255            ./PEMrun.job
     256            if [ $? -ne 0 ]; then
     257                errlaunch
     258            fi
    247259        else # 3D model
    248260            sed -i -E "s/($name_job[^0-9]*[0-9]*[^0-9]*)[0-9]+$/\1${iPEM}/" PEMrun.job
     
    351363# arg1: model dimension
    352364relaunchPEM() {
    353     iPEM=$irelaunch
     365    iPEM=$(($irelaunch + 1))
    354366    iPCM=$(($nPCM_ini + $nPCM*($irelaunch - 1) + 1))
    355367    i_myear=$(awk "NR==$(($iPEM + 1)) {print \$1}" "info_PEM.txt")
Note: See TracChangeset for help on using the changeset viewer.