Ignore:
Timestamp:
Dec 17, 2024, 12:15:17 PM (5 days ago)
Author:
jbclement
Message:

PEM:
As intended, years computed by the PEM runs are now the only ones to be counted for the duration of the PEM simulation. The possibility to count in addition years computed by the PCM runs is left as an option of "launchPEM.sh" with the variable 'counting' (0 = "only PEM runs count"; any other values = "PCM runs are taken into account") + several small corrections/improvements in the launching scripts.
JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/deftank/PCMrun.job

    r3518 r3556  
    3232
    3333# Running the PCM
     34read i_myear n_myear convert_years iPCM iPEM nPCM nPCM_ini < info_PEM.txt
    3435echo "Run PCM $iPCM is starting."
    35 read i_myear n_myear convert_years iPCM iPEM nPCM nPCM_ini < info_PEM.txt
    3636cp run_PCM.def run.def
    3737eval "$exe_cmd > out_runPCM${iPCM} 2>&1"
    3838if [ ! -f "restartfi.nc" ] || ! (tail -n 100 out_runPCM${iPCM} | grep -iq "everything is cool!"); then # Check if it ended abnormally
    3939    echo "Error: the run PCM $iPCM crashed!"
    40     echo "Be careful: there may be dependent jobs remaining in the SLURM queue with status 'DependencyNeverSatisfied'! You can cancel them by executing the script \"kill_launchPEM.sh\"."
     40    if [ $mode -ne 0 ]; then
     41        echo "Be careful: there may be dependent jobs remaining in the SLURM queue with status 'DependencyNeverSatisfied'! You can cancel them by executing the script \"kill_launchPEM.sh\"."
     42    fi
    4143    exit 1
    4244fi
     
    7072fi
    7173((iPCM++))
    72 ((i_myear++))
     74if [ $counting -ne 0 ]; then
     75    i_myear=$(echo "$i_myear + 1." | bc -l)
     76fi
    7377sed -i "1s/.*/$i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini/" info_PEM.txt
Note: See TracChangeset for help on using the changeset viewer.