source: utils/CI/sette/BATCH_TEMPLATE/batch-XC40_METO @ 9988

Last change on this file since 9988 was 9988, checked in by mathiot, 2 years ago

increase UKMO wall time of sette batch script

File size: 2.4 KB
Line 
1#/bin/bash
2#!
3#PBS -N nemo_sette
4#PBS -l walltime=00:30:00
5#PBS -j oe
6#PBS -q normal
7#PBS -l SELECT
8
9  export PBS_O_WORKDIR=$(readlink -f $PBS_O_WORKDIR)
10  export OMP_NUM_THREADS=1
11  cd $PBS_O_WORKDIR
12  export XIO_HOME=/projects/ocean/nemo/xios/xios_1.0_r618_20150619/XIOS
13#
14  echo " ";
15  export OMP_NUM_THREADS=1
16  O_PER_NODE=32
17  X_PER_NODE=4
18  OCORES=NPROCS
19  XCORES=NXIOPROCS
20  if [ $OCORES -le 32 ] ; then O_PER_NODE=$OCORES; fi
21  export SETTE_DIR=DEF_SETTE_DIR
22
23###############################################################
24#
25#
26# load sette functions (only post_test_tidyup needed)
27#
28  . ${SETTE_DIR}/all_functions.sh
29###############################################################
30#
31# Don't remove neither change the following line
32# BODY
33#
34# Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these
35# (via sed operating on this template job file). Note that the number of compute nodes required
36# is also set by the fcm_job.sh on the PBS select header line above.
37#
38# These variables are needed by post_test_tidyup function in all_functions.sh
39#
40  export INPUT_DIR=DEF_INPUT_DIR
41  export CONFIG_DIR=DEF_CONFIG_DIR
42  export TOOLS_DIR=DEF_TOOLS_DIR
43  export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION
44  export NEW_CONF=DEF_NEW_CONF
45  export CMP_NAM=DEF_CMP_NAM
46  export TEST_NAME=DEF_TEST_NAME
47  export EXE_DIR=DEF_EXE_DIR
48  ulimit -c unlimited
49  ulimit -s unlimited
50  export FORT_FMT_RECL=132
51#
52# end of set up
53###############################################################
54#
55# change to the working directory
56#
57  cd $EXE_DIR
58  echo Directory is `pwd`
59 
60  if [ $XCORES -gt 0 ]; then
61#
62#  Run MPMD case
63#
64     #XIOS will run on a separate node so will run in parallel queue
65     if [ ! -f ./xios_server.exe ] && [ -f ${XIO_HOME}/bin/xios_server.exe ]; then
66        cp ${XIO_HOME}/bin/xios_server.exe .
67     fi
68     if [ ! -f ./xios_server.exe ]; then
69        echo "./xios_server.exe not found"
70        echo "run aborted"
71        exit
72     fi
73       echo time aprun -b -n $XCORES -N $X_PER_NODE ./xios_server.exe : -n $OCORES -N $O_PER_NODE ./nemo
74            time aprun -b -n $XCORES -N $X_PER_NODE ./xios_server.exe : -n $OCORES -N $O_PER_NODE ./nemo
75#
76  else
77#
78# Run SPMD case
79#
80    echo time aprun -b  -n $OCORES -N $O_PER_NODE ./nemo
81         time aprun -b  -n $OCORES -N $O_PER_NODE ./nemo
82  fi
83#
84
85#
86  post_test_tidyup
87# END_BODY
88# Don't remove neither change the previous line
89  exit
90
Note: See TracBrowser for help on using the repository browser.