New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
batch-XC40_METO in branches/UKMO/dev_r5518_GO6_package_port2021/NEMOGCM/SETTE/BATCH_TEMPLATE – NEMO

source: branches/UKMO/dev_r5518_GO6_package_port2021/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-XC40_METO @ 15332

Last change on this file since 15332 was 15332, checked in by andmirek, 3 years ago

Ticket GP29: All but AGRIF can be built.

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