source:
trunk/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-X64_TITANE
@
3294
Last change on this file since 3294 was 3294, checked in by rblod, 12 years ago | |
---|---|
|
|
File size: 1.6 KB |
Line | |
---|---|
1 | #!/bin/bash |
2 | #! |
3 | #MSUB -T 3600 # Limite de temps elapsed du job ici 3600s |
4 | #MSUB -r SETTE_JOB # Nom du job |
5 | #MSUB -n NPROCS # Reservation de NPROCS(number of processus) |
6 | ########################################################################## |
7 | # |
8 | # Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these |
9 | # (via sed operating on this template job file). |
10 | # |
11 | OCEANCORES=NPROCS |
12 | export SETTE_DIR=DEF_SETTE_DIR |
13 | # |
14 | # set up mpp computing environment |
15 | # |
16 | # Local settings for machine BULL (TITANE at CCRT France) |
17 | # |
18 | export MPIRUN="mpirun -np $OCEANCORES" |
19 | |
20 | # |
21 | # load sette functions (only post_test_tidyup needed) |
22 | # |
23 | . ${SETTE_DIR}/all_functions.sh |
24 | # |
25 | |
26 | # modules to load |
27 | module load netcdf |
28 | |
29 | # Don't remove neither change the following line |
30 | # BODY |
31 | |
32 | # |
33 | # These variables are needed by post_test_tidyup function in all_functions.sh |
34 | # |
35 | export EXE_DIR=DEF_EXE_DIR |
36 | export INPUT_DIR=DEF_INPUT_DIR |
37 | export CONFIG_DIR=DEF_CONFIG_DIR |
38 | export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION |
39 | export NEW_CONF=DEF_NEW_CONF |
40 | export CMP_NAM=DEF_CMP_NAM |
41 | export TEST_NAME=DEF_TEST_NAME |
42 | # |
43 | # end of set up |
44 | ############################################################### |
45 | # |
46 | # change to the working directory |
47 | # |
48 | cd ${EXE_DIR} |
49 | |
50 | echo Running on host `hostname` |
51 | echo Time is `date` |
52 | echo Directory is `pwd` |
53 | # |
54 | # Run the parallel MPI executable |
55 | # |
56 | echo "Running time ${MPIRUN} ./opa" |
57 | # |
58 | if [ MPI_FLAG == "yes" ]; then |
59 | time ${MPIRUN} ./opa |
60 | else |
61 | time ./opa |
62 | fi |
63 | |
64 | # |
65 | post_test_tidyup |
66 | |
67 | # END_BODY |
68 | # Don't remove neither change the previous line |
69 | |
70 | |
71 | exit |
72 |
Note: See TracBrowser
for help on using the repository browser.