source:
branches/2014/dev_CNRS1_10_TEOS10_Ediag/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-PW6_CALYPSO
@
9270
Last change on this file since 9270 was 3294, checked in by rblod, 12 years ago | |
---|---|
|
|
File size: 1.6 KB |
Line | |
---|---|
1 | #!/bin/bash |
2 | #! |
3 | #BSUB -q poe_short |
4 | #BSUB -n NPROCS |
5 | #BSUB -a poe |
6 | #BSUB -J MPI_config |
7 | #BSUB -o poe.stdout.%J |
8 | #BSUB -e poe.stderr.%J |
9 | |
10 | |
11 | |
12 | ############################################################### |
13 | # Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these |
14 | # (via sed operating on this template job file). |
15 | # |
16 | OCEANCORES=NPROCS |
17 | export SETTE_DIR=DEF_SETTE_DIR |
18 | |
19 | ############################################################### |
20 | # |
21 | # set up mpp computing environment |
22 | # |
23 | # Local settings for machine IBM Power6 (VARGAS at IDRIS France) |
24 | # |
25 | |
26 | # export MPIRUN="mpirun -n $OCEANCORES" |
27 | |
28 | export MPIRUN="mpirun.lsf" |
29 | |
30 | # |
31 | # load sette functions (only post_test_tidyup needed) |
32 | # |
33 | . ${SETTE_DIR}/all_functions.sh |
34 | |
35 | |
36 | # Don't remove neither change the following line |
37 | # BODY |
38 | |
39 | # |
40 | # These variables are needed by post_test_tidyup function in all_functions.sh |
41 | # |
42 | export EXE_DIR=DEF_EXE_DIR |
43 | export INPUT_DIR=DEF_INPUT_DIR |
44 | export CONFIG_DIR=DEF_CONFIG_DIR |
45 | export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION |
46 | export NEW_CONF=DEF_NEW_CONF |
47 | export CMP_NAM=DEF_CMP_NAM |
48 | export TEST_NAME=DEF_TEST_NAME |
49 | # |
50 | # end of set up |
51 | |
52 | |
53 | ############################################################### |
54 | # |
55 | # change to the working directory |
56 | # |
57 | cd ${EXE_DIR} |
58 | |
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 | # |
66 | # echo "Running time ${MPIRUN} " $OCEANCORES " ./opa" |
67 | # |
68 | |
69 | if [ MPI_FLAG == "yes" ]; then |
70 | time ${MPIRUN} ./opa |
71 | else |
72 | time ./opa |
73 | fi |
74 | # |
75 | post_test_tidyup |
76 | |
77 | # END_BODY |
78 | # Don't remove neither change the previous line |
79 | |
80 | exit |
Note: See TracBrowser
for help on using the repository browser.