Ignore:
Timestamp:
Nov 7, 2024, 10:27:18 AM (2 weeks ago)
Author:
jbclement
Message:

PEM:
Modifications related to the launching script:

  • There is actually no launching difference between the 1D and 3D models. It is more about how and where you want to execute. So now, the user can choose between two launching modes with the parameter "mode" (0 = "processing scripts"; any other values = "submitting jobs"). The former option is usually used to process the script on a local machine while the latter is used to submit jobs on supercomputer;
  • The execution command line in the job scripts that should be modified by the user according to the set-up is now given as an argument at the beginning to be more identifiable and adaptable;
  • Making the job scripts more robust to detect a successful end.

JBC

File:
1 edited

Legend:

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

    r3419 r3495  
    1717#n_earth_years=300
    1818
    19 # Set the number of initial PCM runs:
     19# Set the number of initial PCM runs (>= 2):
    2020nPCM_ini=3
    2121
    22 # Set the number of PCM runs between each PEM run:
     22# Set the number of PCM runs between each PEM run (>= 2):
    2323nPCM=2
    2424
    25 # Set the dimension of the model (1 = "1D"; other values = "3D"):
    26 dim=3
     25# Set the launching mode (0 = "processing scripts"; any other values = "submitting jobs"). The former option is usually used to process the script on a local machine while the latter is used to submit jobs on supercomputer:
     26mode=1
    2727########################################################################
    2828
     
    4848    checklaunch
    4949    initlaunch
    50     cyclelaunch $dim $nPCM_ini
     50    cyclelaunch $mode $nPCM_ini
    5151
    5252else
     
    5757        echo "This is a new cycle for the PEM simulation."
    5858        date
    59         if [ $dim -ne 1 ]; then
     59        if [ $mode -ne 0 ]; then
    6060            job_scheduler
    6161        fi
    6262        read i_myear n_myear convert_years iPCM iPEM nPCM nPCM_ini < info_PEM.txt
    63         cyclelaunch $dim $nPCM
     63        cyclelaunch $mode $nPCM
    6464
    6565    # Starting a relaunch
     
    122122        fi
    123123        if [ $relaunch = "PCM" ]; then
    124             relaunchPCM $dim
     124            relaunchPCM $mode
    125125        else
    126             relaunchPEM $dim
     126            relaunchPEM $mode
    127127        fi
    128128
     
    133133        echo "This is a continuation of the previous PEM run."
    134134        date
    135         submitPEM $dim
     135        submitPEM $mode
    136136
    137137    # Default case: error
Note: See TracChangeset for help on using the changeset viewer.