source: branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/SETTE/batch/batch-PW7_MONSOON @ 5356

Last change on this file since 5356 was 5029, checked in by davestorkey, 6 years ago

Reinstate old formulation of EEN vorticity scheme as an option in NEMO 3.6.
See ticket #1375

  • Property svn:executable set to *
File size: 1.9 KB
Line 
1#!/bin/bash
2#!
3# @ shell = /usr/bin/ksh
4# @ job_name = MPI_config
5# @ output = out.$(job_name).$(jobid)
6# @ error =  err.$(job_name).$(jobid)
7# @ job_type = parallel
8# @ total_tasks = NPROCS
9# @ wall_clock_limit = 0:30:00
10# @ resources = ConsumableMemory(1562mb)
11# @ class = parallel
12# @ node_usage = shared
13# @ notification = error
14# @ task_affinity = core
15# @ queue
16
17ulimit -c unlimited
18ulimit -s unlimited
19#
20# Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these
21# (via sed operating on this template job file).
22#
23  OCEANCORES=NPROCS
24  export SETTE_DIR=DEF_SETTE_DIR
25
26###############################################################
27#
28# set up mpp computing environment
29#
30# Local settings for machine IBM Power7 (hpc2e at UK Met Office)
31#
32export MPIRUN="poe -pgmodel $MP_PGMMODEL -n $OCEANCORES -cmdfile"
33
34#
35# load sette functions (only post_test_tidyup needed)
36#
37  . ${SETTE_DIR}/all_functions.sh
38
39# Don't remove neither change the following comment line
40# BODY
41
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 NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION
50  export NEW_CONF=DEF_NEW_CONF
51  export CMP_NAM=DEF_CMP_NAM
52  export TEST_NAME=DEF_TEST_NAME
53#
54# end of set up
55
56
57###############################################################
58#
59# change to the working directory
60#
61cd ${EXE_DIR}
62
63  echo Running on host `hostname`
64  echo Time is `date`
65  echo Directory is `pwd`
66#
67#  Run the parallel MPI executable
68#
69  if [ MPI_FLAG == "yes" ]; then
70     n=1
71     echo "./opa" > ./alltasks
72     while [ $n -lt $OCEANCORES ]
73     do
74       echo "./opa" >> ./alltasks
75       n=$(( $n + 1 ))
76     done
77     time ${MPIRUN} ./alltasks
78  else
79     time ./opa
80  fi
81
82
83#
84  post_test_tidyup
85
86# END_BODY
87# Don't remove neither change the previous comment line
88
89  exit
Note: See TracBrowser for help on using the repository browser.