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_MONSOON in NEMO/branches/2019/fix_sette_ticket2239/BATCH_TEMPLATE – NEMO

source: NEMO/branches/2019/fix_sette_ticket2239/BATCH_TEMPLATE/batch-PW7_MONSOON @ 10703

Last change on this file since 10703 was 10703, checked in by mathiot, 5 years ago

reverse change in BATCH_TEMPLATE (ticket #2239)

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 TOOLS_DIR=DEF_TOOLS_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 "./nemo" > ./alltasks
73     while [ $n -lt $OCEANCORES ]
74     do
75       echo "./nemo" >> ./alltasks
76       n=$(( $n + 1 ))
77     done
78     time ${MPIRUN} ./alltasks
79  else
80     time ./nemo
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.