wiki:Documentation/UserGuide/TestCaseBatch

Version 1 (modified by jgipsl, 11 years ago) (diff)

--

How to run a simple test case with ORCHIDEE offline with a batch job

First prepare a run directory following the how to How to run a simple test case with ORCHIDEE.

Then prepare a job according to computer environement and submit it.

Exemple at curie/TGCC

  • First prepare a run directory following the how to How to run a simple test case with ORCHIDEE. But instead of using wget to copy the files, they can be found in the directory /ccc/work/cont003/dsm/p86ipsl/IGCM and can be linked or copied directly. The path is the same.
  • Then create a text file as follow and save it as Job_curie :
    #!/bin/ksh
    ######################
    ## CURIE   TGCC/CEA ##
    ######################
    #MSUB -r test             # name of the job
    #MSUB -o Script_Output    # name of output file for standard messages
    #MSUB -e Script_Output    # name of output file for error messages
    #MSUB -eo
    #MSUB -n 4                # Request numbre of cores
    #MSUB -T 1800             # Time limit in seconds
    #MSUB -Q test             # Queue test, priority acces
    #MSUB -q standard
    #MSUB -A gen6328          # Set your project id
    BATCH_NUM_PROC_TOT=$BRIDGE_MSUB_NPROC
    set +x
    
    cd ${BRIDGE_MSUB_PWD}
    /usr/bin/time ccc_mprun -n 4 ./orchidee_ol
    
  • Submit the job :
ccc_msub Job_curie
  • Survey the job while it is still in queue :
ccc_mstat -u

  • Kill the job if needed, take the jobid from the ccc_mstat command :
ccc_mdel jobid

Exemple at ada/IDRIS

to come