source: trunk/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-IBM_EKMAN_INGV @ 8468

Last change on this file since 8468 was 8468, checked in by flavoni, 4 years ago

#1936: add in sette_rpt.sh difference of SAS restart_ice files

  • 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 TOOLS_DIR=DEF_TOOLS_DIR
50  export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION
51  export NEW_CONF=DEF_NEW_CONF
52  export CMP_NAM=DEF_CMP_NAM
53  export TEST_NAME=DEF_TEST_NAME
54#
55# end of set up
56
57
58###############################################################
59#
60# change to the working directory
61#
62cd ${EXE_DIR}
63
64#
65  echo Running on host `hostname`
66  echo Time is `date`
67  echo Directory is `pwd`
68#
69#  Run the parallel MPI executable
70#
71#  echo "Running time ${MPIRUN} " $OCEANCORES " ./opa"
72#
73
74  if [ MPI_FLAG == "yes" ]; then
75     if [ $XIOS_NUMPROCS -eq 0 ]; then
76       time ${MPIRUN} ./opa
77     else
78       time ${MPIRUN_MPMD}
79     fi
80  else
81       time ./opa
82  fi
83#
84  post_test_tidyup
85
86# END_BODY
87# Don't remove neither change the previous line
88
89  exit
Note: See TracBrowser for help on using the repository browser.