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-PW7_METO in branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/SETTE/batch – NEMO

source: branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/SETTE/batch/batch-PW7_METO @ 5095

Last change on this file since 5095 was 4285, checked in by rfurner, 10 years ago

added UKMO batch file

  • 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# @ group = science
16# @ queue
17
18ulimit -c unlimited
19ulimit -s unlimited
20#
21# Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these
22# (via sed operating on this template job file).
23#
24  OCEANCORES=NPROCS
25  export SETTE_DIR=DEF_SETTE_DIR
26
27###############################################################
28#
29# set up mpp computing environment
30#
31# Local settings for machine IBM Power7 (hpc2e at UK Met Office)
32#
33export MPIRUN="poe -pgmodel $MP_PGMMODEL -n $OCEANCORES -cmdfile"
34
35#
36# load sette functions (only post_test_tidyup needed)
37#
38  . ${SETTE_DIR}/all_functions.sh
39
40# Don't remove neither change the following comment line
41# BODY
42
43
44#
45# These variables are needed by post_test_tidyup function in all_functions.sh
46#
47  export EXE_DIR=DEF_EXE_DIR
48  export INPUT_DIR=DEF_INPUT_DIR
49  export CONFIG_DIR=DEF_CONFIG_DIR
50  export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION
51  export NEW_CONF=DEF_NEW_CONF
52  export CMP_NAM=DEF_CMP_NAM
53  export TEST_NAME=DEF_TEST_NAME
54#
55# end of set up
56
57
58###############################################################
59#
60# change to the working directory
61#
62cd ${EXE_DIR}
63
64  echo Running on host `hostname`
65  echo Time is `date`
66  echo Directory is `pwd`
67#
68#  Run the parallel MPI executable
69#
70  if [ MPI_FLAG == "yes" ]; then
71     n=1
72     echo "./opa" > ./alltasks
73     while [ $n -lt $OCEANCORES ]
74     do
75       echo "./opa" >> ./alltasks
76       n=$(( $n + 1 ))
77     done
78     time ${MPIRUN} ./alltasks
79  else
80     time ./opa
81  fi
82
83
84#
85  post_test_tidyup
86
87# END_BODY
88# Don't remove neither change the previous comment line
89
90  exit
Note: See TracBrowser for help on using the repository browser.