source:
branches/2012/dev_NOC_2012_rev3555/NEMOGCM/SETTE/BATCH_TEMPLATE/sette_batch_template
@
5885
Last change on this file since 5885 was 3608, checked in by acc, 12 years ago | |
---|---|
|
|
File size: 1.6 KB |
Rev | Line | |
---|---|---|
[2890] | 1 | #!/bin/bash |
2 | #! | |
3 | # @ job_name = MPI_config | |
4 | # standard output file | |
5 | # @ output = $(job_name).$(jobid) | |
6 | # standard error file | |
7 | # @ error = $(job_name).$(jobid) | |
8 | # job type | |
9 | # @ job_type = parallel | |
10 | # Number of procs | |
11 | # @ total_tasks = NPROCS | |
12 | # time | |
13 | # @ wall_clock_limit = 0:30:00 | |
14 | # @ queue | |
15 | ||
[3294] | 16 | # |
17 | # Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these | |
18 | # (via sed operating on this template job file). | |
19 | # | |
20 | OCEANCORES=NPROCS | |
21 | export SETTE_DIR=DEF_SETTE_DIR | |
22 | ||
[2890] | 23 | ############################################################### |
24 | # | |
25 | # set up mpp computing environment | |
26 | # | |
27 | # Local settings for machine IBM Power6 (VARGAS at IDRIS France) | |
28 | # | |
[3294] | 29 | export MPIRUN="mpiexec -n $OCEANCORES" |
30 | ||
[2890] | 31 | # |
[3294] | 32 | # load sette functions (only post_test_tidyup needed) |
[2890] | 33 | # |
[3294] | 34 | . ${SETTE_DIR}/all_functions.sh |
35 | ||
36 | # Don't remove neither change the following comment line | |
37 | # BODY | |
38 | ||
39 | ||
[2890] | 40 | # |
41 | # These variables are needed by post_test_tidyup function in all_functions.sh | |
42 | # | |
43 | export EXE_DIR=DEF_EXE_DIR | |
44 | export INPUT_DIR=DEF_INPUT_DIR | |
45 | export CONFIG_DIR=DEF_CONFIG_DIR | |
46 | export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION | |
47 | export NEW_CONF=DEF_NEW_CONF | |
48 | export CMP_NAM=DEF_CMP_NAM | |
49 | export TEST_NAME=DEF_TEST_NAME | |
50 | # | |
51 | # end of set up | |
[3294] | 52 | |
53 | ||
[2890] | 54 | ############################################################### |
55 | # | |
56 | # change to the working directory | |
57 | # | |
58 | cd ${EXE_DIR} | |
59 | ||
60 | echo Running on host `hostname` | |
61 | echo Time is `date` | |
62 | echo Directory is `pwd` | |
63 | # | |
64 | # Run the parallel MPI executable | |
65 | # | |
[3608] | 66 | if [ MPI_FLAG == "yes" ]; then |
[3294] | 67 | echo "Running time ${MPIRUN} ./opa" |
68 | time ${MPIRUN} ./opa | |
69 | else | |
[3608] | 70 | echo "Running time./opa" |
[3294] | 71 | time ./opa |
72 | fi | |
73 | ||
74 | ||
[2890] | 75 | # |
76 | post_test_tidyup | |
[3294] | 77 | |
78 | # END_BODY | |
79 | # Don't remove neither change the previous comment line | |
80 | ||
[2890] | 81 | exit |
Note: See TracBrowser
for help on using the repository browser.