source:
branches/2012/dev_NOC_2012_rev3555/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-X64_TITANE
@
6897
Last change on this file since 6897 was 3608, checked in by acc, 12 years ago | |
---|---|
|
|
File size: 1.6 KB |
Rev | Line | |
---|---|---|
[2890] | 1 | #!/bin/bash |
2 | #! | |
[3011] | 3 | #MSUB -T 3600 # Limite de temps elapsed du job ici 3600s |
[3029] | 4 | #MSUB -r SETTE_JOB # Nom du job |
[3011] | 5 | #MSUB -n NPROCS # Reservation de NPROCS(number of processus) |
6 | ########################################################################## | |
[2890] | 7 | # |
[3294] | 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 | # | |
[2890] | 14 | # set up mpp computing environment |
15 | # | |
16 | # Local settings for machine BULL (TITANE at CCRT France) | |
17 | # | |
[3294] | 18 | export MPIRUN="mpirun -np $OCEANCORES" |
19 | ||
[2890] | 20 | # |
[3294] | 21 | # load sette functions (only post_test_tidyup needed) |
[2890] | 22 | # |
[3294] | 23 | . ${SETTE_DIR}/all_functions.sh |
[2890] | 24 | # |
[3294] | 25 | |
26 | # modules to load | |
27 | module load netcdf | |
28 | ||
29 | # Don't remove neither change the following line | |
30 | # BODY | |
31 | ||
32 | # | |
[2890] | 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 | # | |
[3608] | 56 | if [ MPI_FLAG == "yes" ]; then |
[3294] | 57 | echo "Running time ${MPIRUN} ./opa" |
58 | time ${MPIRUN} ./opa | |
59 | else | |
[3608] | 60 | echo "Running time ./opa" |
[3294] | 61 | time ./opa |
62 | fi | |
63 | ||
[2890] | 64 | # |
65 | post_test_tidyup | |
[3294] | 66 | |
67 | # END_BODY | |
68 | # Don't remove neither change the previous line | |
69 | ||
70 | ||
[2890] | 71 | exit |
72 |
Note: See TracBrowser
for help on using the repository browser.