source: trunk/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-XC_ARCHER_INTEL @ 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.8 KB
Line 
1#!/bin/bash
2#!
3#PBS -N nemo_sette
4#PBS -l walltime=00:59:00
5#PBS -l select=NODES
6#PBS -j oe
7#PBS -A n01-Global
8
9
10  export PBS_O_WORKDIR=$(readlink -f $PBS_O_WORKDIR)               
11  export OMP_NUM_THREADS=1
12  cd $PBS_O_WORKDIR
13#
14  echo " ";
15  export OMP_NUM_THREADS=1
16  O_PER_NODE=24
17  X_PER_NODE=4
18  OCORES=NPROCS
19  if [ $OCORES -le 23 ] ; then O_PER_NODE=$OCORES; fi
20  XCORES=NXIOPROCS
21  if [ $XCORES -le 3 ] ; then X_PER_NODE=$XCORES; fi
22  export SETTE_DIR=DEF_SETTE_DIR
23  export XIO_HOME=/home/acc/XIOS
24###############################################################
25#
26#
27# load sette functions (only post_test_tidyup needed)
28#
29  . ${SETTE_DIR}/all_functions.sh
30###############################################################
31#
32# set up mpp computing environment
33#
34#
35# Local settings. These settings are for a particular machine (the MOBILIS ClusterVision
36# system at NOCS) at a particular stage of that machine's evolution. This template file
37# is provided for illustration purposes only and will not work on any other machine. There
38# should, however, be sufficient similarity with other MPP platforms and batch systems
39# for this example to provide a useful guide for experienced users
40#
41# Don't remove neither change the following line
42# BODY
43#
44# Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these
45# (via sed operating on this template job file). Note that the number of compute nodes required
46# is also set by the fcm_job.sh on the PBS select header line above.
47#
48# These variables are needed by post_test_tidyup function in all_functions.sh
49#
50  export INPUT_DIR=DEF_INPUT_DIR
51  export CONFIG_DIR=DEF_CONFIG_DIR
52  export TOOLS_DIR=DEF_TOOLS_DIR
53  export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION
54  export NEW_CONF=DEF_NEW_CONF
55  export CMP_NAM=DEF_CMP_NAM
56  export TEST_NAME=DEF_TEST_NAME
57  export EXE_DIR=DEF_EXE_DIR
58  ulimit -c unlimited
59  ulimit -s unlimited
60  export FORT_FMT_RECL=132
61#
62# end of set up
63###############################################################
64#
65# change to the working directory
66#
67  cd $EXE_DIR
68  echo Directory is `pwd`
69  if [ $XCORES -eq 0 ]; then
70#
71# Run SPMD case
72#
73       echo time aprun -b  -n $OCORES -N $O_PER_NODE ./opa
74            time aprun -b  -n $OCORES -N $O_PER_NODE ./opa
75  else
76       if [ ! -f ./xios_server.exe ] && [ -f ${XIO_HOME}/bin/xios_server.exe ]; then
77          cp ${XIO_HOME}/bin/xios_server.exe .
78       fi
79       if [ ! -f ./xios_server.exe ]; then
80          echo "./xios_server.exe not found"
81          echo "run aborted"
82          exit
83       fi
84#
85#  Run MPMD case
86#
87       echo time aprun -b -n $XCORES -N $X_PER_NODE ./xios_server.exe : -n $OCORES -N $O_PER_NODE ./opa
88            time aprun -b -n $XCORES -N $X_PER_NODE ./xios_server.exe : -n $OCORES -N $O_PER_NODE ./opa
89#
90  fi
91#
92  post_test_tidyup
93# END_BODY
94# Don't remove neither change the previous line
95  exit
Note: See TracBrowser for help on using the repository browser.