################################################################################ ############################ USER CHANGES ###################################### ################################################################################ #------------------------------------------------------------------------------- # Job submission settings #------------------------------------------------------------------------------- # Job walltime export TIMEJOB=86400 # Project Id (on which hours are taken, if needed) export projectid="13004159" # Permissions given to output files export permission="755" #------------------------------------------------------------------------------- # Run date settings #------------------------------------------------------------------------------- # Your run can be divided into several jobs (e.g.: 1 year run into 12 jobs of 1 month) # Start date of the first Job export YEAR_BEGIN_JOB=2013 export MONTH_BEGIN_JOB=1 export DAY_BEGIN_JOB=1 # Duration of each Job export JOB_DUR_MTH=1 export JOB_DUR_DAY=0 # How many jobs do you want to launch? export NBJOB=1 # Do we start from a restart? export RESTART_FLAG="FALSE" #------------------------------------------------------------------------------- # Job submission type #------------------------------------------------------------------------------- export CHAINED_JOB="FALSE" #If TRUE , place all the jobs in the queue at the begining, #If FALSE, place job in the queue after the previous one ended # MODE_TEST: # The MODE_TEST env variable is a suffix of the experiment name # in order to run several tests within one experiment. # Several tests can be launched simultaneously # However, production mode and test mode cannot be used simultaneously export MODE_TEST="" # mode Production # DEBUG for test # To help debug the submit_job. Can be of some use when working on chained_job.sh export SCRIPT_DEBUG="FALSE" #------------------------------------------------------------------------------- # Multi-Step #------------------------------------------------------------------------------- LOADL_STEP_NAME="XXX" # XXX will do all steps # otherwise "get_file"/"run_model"/"put_file" individual steps can be selected #------------------------------------------------------------------------------- # Number of core used # ------------------------------------------------------------------------------ # mpi launch command: ccc_mprun :for irene / $MPI_LAUNCH for datarmor (or mpiexec.hydra ) MPI_LAUNCH_CMD=$MPI_LAUNCH export SERIAL_LAUNCH_WAV="$MPI_LAUNCH -n 1 " # serial launch for WW3 prepro: getrst_ww3.sh # nb of CPUs for each model export NP_OCEX=2 export NP_OCEY=2 export NP_ATM=16 # additional MPI Settings for ATM (WRF) export atm_nprocX=4 # -1 for automatic settings export atm_nprocY=4 # -1 for automatic settings export atm_niotaskpg=0 # 0 for default settings export atm_niogp=1 # 1 for default settings ################################################################################ ############################ END USER CHANGE ################################### ################################################################################ #------------------------------------------------------------------------------- # Calendar computation #------------------------------------------------------------------------------- cd ${SCRIPTDIR} . ./caltools.sh cd - #------------------------------------------------------------------------------- # Names #------------------------------------------------------------------------------- export ROOT_NAME_1="${CEXPER}_${DATE_BEGIN_JOB}_${DATE_END_JOB}${MODE_TEST}" export ROOT_NAME_2="${DATE_BEGIN_JOB}_${DATE_END_JOB}${MODE_TEST}" export ROOT_NAME_3="${DATE_END_JOB}${MODE_TEST}" export jobname="job_${ROOT_NAME_1}.sh" # File submitted. For DATRAMOR the extension is changed by .pbs #------------------------------------------------------------------------------- # Define the functions to get/put files #------------------------------------------------------------------------------- export io_getfile="lnfile" export io_putfile="mvfile" #------------------------------------------------------------------------------- # Which Computer? #------------------------------------------------------------------------------- # Machine you are working on # Known machines: Linux DATARMOR IRENE JEANZAY LEFTRARU NEA # If your machine is not already known, you can add it by creating a few files (hearder, myenv, launch) # in a dedicated directory under: SCRIPTS/SCRIPTS_COUPLING/SCRIPTS_TOOLBOX/MACHINE/ and add a case in # SCRIPTS/SCRIPTS_COUPLING/myjob.sh (after l.95) if [ ${MACHINE} == "Linux" ]; then export QSUB="./" elif [ ${MACHINE} == "IRENE" ]; then export QSUB="ccc_msub -m work,store,scratch " elif [ ${MACHINE} == "JEANZAY" ] || [ ${MACHINE} == "LEFTRARU" ] || [ ${MACHINE} == "NEA" ]; then export QSUB="sbatch " elif [ ${MACHINE} == "DATARMOR" ] || [ ${MACHINE} == "WCHPC" ]; then export QSUB="qsub " export jobname="job_${ROOT_NAME_1}.pbs" else printf "\n\n Machine unknown => EXIT \n\n" printf "To define your Machine:\n - Define your environement in ${SCRIPTDIR}/MACHINE \n - Prepare your header \n - Prepare a launch_${MACHINE}\n - Add your machine in myjob.sh"; exit; fi echo " " echo "MACHINE is ${MACHINE}" echo " "