source: branches/2015/dev_r5021_UKMO1_CICE_coupling/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-IBM_EKMAN_INGV @ 5443

Last change on this file since 5443 was 5443, checked in by davestorkey, 5 years ago

Update 2015/dev_r5021_UKMO1_CICE_coupling branch to revision 5442 of the trunk.

  • Property svn:executable set to *
File size: 1.9 KB
Line 
1#!/bin/bash
2#!
3#BSUB -q long
4#BSUB -n TOTAL_NPROCS
5#BSUB -J MPI_config
6#BSUB -o stdout.%J
7#BSUB -e stderr.%J
8
9 
10
11###############################################################
12# Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these
13# (via sed operating on this template job file).
14#
15  OCEANCORES=NPROCS
16  XIOS_NUMPROCS=NXIOPROCS
17  export SETTE_DIR=DEF_SETTE_DIR
18
19###############################################################
20#
21# set up mpp computing environment
22#
23# Local settings for machine IBM (EKMAN at INGV)
24#
25
26 MPIPROGINF=detail
27 export MPIPROGINF
28 export LSF_PJL_TYPE="intelmpi"
29 export MP_PGMMODEL=mpmd
30 export MP_SHARED_MEMORY=yes
31 export MPIRUN="mpirun -n $OCEANCORES"
32 export MPIRUN_MPMD="mpirun -np $OCEANCORES ./opa : -np $XIOS_NUMPROCS /home/delrosso/XIOS_1.0/xios-1.0/bin/xios_server.exe"
33
34#
35# load sette functions (only post_test_tidyup needed)
36#
37  . ${SETTE_DIR}/all_functions.sh
38
39
40# Don't remove neither change the following line
41# BODY
42
43#
44# These variables are needed by post_test_tidyup function in all_functions.sh
45#
46  export EXE_DIR=DEF_EXE_DIR
47  export INPUT_DIR=DEF_INPUT_DIR
48  export CONFIG_DIR=DEF_CONFIG_DIR
49  export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION
50  export NEW_CONF=DEF_NEW_CONF
51  export CMP_NAM=DEF_CMP_NAM
52  export TEST_NAME=DEF_TEST_NAME
53#
54# end of set up
55
56
57###############################################################
58#
59# change to the working directory
60#
61cd ${EXE_DIR}
62
63#
64  echo Running on host `hostname`
65  echo Time is `date`
66  echo Directory is `pwd`
67#
68#  Run the parallel MPI executable
69#
70#  echo "Running time ${MPIRUN} " $OCEANCORES " ./opa"
71#
72
73  if [ MPI_FLAG == "yes" ]; then
74     if [ $XIOS_NUMPROCS -eq 0 ]; then
75       time ${MPIRUN} ./opa
76     else
77       time ${MPIRUN_MPMD}
78     fi
79  else
80       time ./opa
81  fi
82#
83  post_test_tidyup
84
85# END_BODY
86# Don't remove neither change the previous line
87
88  exit
Note: See TracBrowser for help on using the repository browser.