| 1 | = How to run a simple test case with ORCHIDEE offline with a batch job = |
| 2 | |
| 3 | First prepare a run directory following the how to [wiki:HowTo/TestCase1 How to run a simple test case with ORCHIDEE]. |
| 4 | |
| 5 | Then prepare a job according to computer environement and submit it. |
| 6 | |
| 7 | |
| 8 | == Exemple at curie/TGCC == |
| 9 | * First prepare a run directory following the how to [wiki:HowTo/TestCase1 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. |
| 10 | |
| 11 | * Then create a text file as follow and save it as Job_curie : |
| 12 | {{{ |
| 13 | #!/bin/ksh |
| 14 | ###################### |
| 15 | ## CURIE TGCC/CEA ## |
| 16 | ###################### |
| 17 | #MSUB -r test # name of the job |
| 18 | #MSUB -o Script_Output # name of output file for standard messages |
| 19 | #MSUB -e Script_Output # name of output file for error messages |
| 20 | #MSUB -eo |
| 21 | #MSUB -n 4 # Request numbre of cores |
| 22 | #MSUB -T 1800 # Time limit in seconds |
| 23 | #MSUB -Q test # Queue test, priority acces |
| 24 | #MSUB -q standard |
| 25 | #MSUB -A gen6328 # Set your project id |
| 26 | BATCH_NUM_PROC_TOT=$BRIDGE_MSUB_NPROC |
| 27 | set +x |
| 28 | |
| 29 | cd ${BRIDGE_MSUB_PWD} |
| 30 | /usr/bin/time ccc_mprun -n 4 ./orchidee_ol |
| 31 | }}} |
| 32 | |
| 33 | * Submit the job : |
| 34 | |
| 35 | {{{ |
| 36 | ccc_msub Job_curie |
| 37 | }}} |
| 38 | |
| 39 | * Survey the job while it is still in queue : |
| 40 | |
| 41 | {{{ |
| 42 | ccc_mstat -u |
| 43 | }}} |
| 44 | |
| 45 | * Kill the job if needed, take the jobid from the ccc_mstat command : |
| 46 | |
| 47 | {{{ |
| 48 | ccc_mdel jobid |
| 49 | }}} |
| 50 | |
| 51 | |
| 52 | == Exemple at ada/IDRIS == |
| 53 | to come |