source: trunk/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-ifort_athena_xios @ 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: 2.3 KB
Line 
1#!/bin/bash
2#!
3#BSUB -q poe_short
4#BSUB -n TOTAL_NPROCS
5#BSUB -a poe
6#BSUB -J NEMO_SETTE
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  XIOS_NUMPROCS=NXIOPROCS
18  export SETTE_DIR=DEF_SETTE_DIR
19
20###############################################################
21#
22# set up mpp computing environment
23#
24# Local settings for machine IBM Power6 (VARGAS at IDRIS France)
25#
26
27# export MPIRUN="mpirun -n $OCEANCORES"
28
29module load  INTEL/intel_xe_2013 NETCDF/netcdf-4.3_parallel NETCDF/parallel-netcdf-1.3.1 HDF5/hdf5-1.8.11_parallel
30export MPIRUN="mpirun.lsf"
31
32export LD_LIBRARY_PATH=${XIOS}/lib:${LD_LIBRARY_PATH}
33
34XIOS_SERVER_PATHNAME="${XIOS}/bin/xios_server.exe"
35
36#
37# load sette functions (only post_test_tidyup needed)
38#
39  . ${SETTE_DIR}/all_functions.sh
40
41
42# Don't remove neither change the following line
43# BODY
44
45#
46# These variables are needed by post_test_tidyup function in all_functions.sh
47#
48  export EXE_DIR=DEF_EXE_DIR
49  export INPUT_DIR=DEF_INPUT_DIR
50  export CONFIG_DIR=DEF_CONFIG_DIR
51  export TOOLS_DIR=DEF_TOOLS_DIR
52  export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION
53  export NEW_CONF=DEF_NEW_CONF
54  export CMP_NAM=DEF_CMP_NAM
55  export TEST_NAME=DEF_TEST_NAME
56#
57# end of set up
58
59
60###############################################################
61#
62# change to the working directory
63#
64cd ${EXE_DIR}
65
66#
67  echo Running on host `hostname`
68  echo Time is `date`
69  echo Directory is `pwd`
70#
71#  Run the parallel MPI executable
72#
73#  echo "Running time ${MPIRUN} " $OCEANCORES " ./opa"
74#
75
76  if [ MPI_FLAG == "yes" ]; then
77     if [ $XIOS_NUMPROCS -eq 0 ]; then
78       time ${MPIRUN} ./opa
79     else
80
81       export MP_PGMMODEL=mpmd
82       export MP_CMDFILE=xioscmdfile
83       rm xioscmdfile &> /dev/null
84       touch xioscmdfile
85       k=0
86       while (( k < $OCEANCORES )) ; do
87          echo ./opa >> xioscmdfile
88          k=`expr $k + 1`
89       done
90       k=0
91       while (( k < $XIOS_NUMPROCS )) ; do
92          echo $XIOS_SERVER_PATHNAME >> xioscmdfile
93          k=`expr $k + 1`
94       done
95
96       time ${MPIRUN}
97     fi
98  else
99     time ./opa
100  fi
101#
102  post_test_tidyup
103
104# END_BODY
105# Don't remove neither change the previous line
106
107  exit
Note: See TracBrowser for help on using the repository browser.