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

source: NEMO/branches/2019/fix_sette_ticket2239/BATCH_TEMPLATE/batch-openmpi_NAVITI_MERCATOR @ 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.6 KB
Line 
1#!/bin/bash
2#!
3#PBS -N sette
4#PBS -e sette.$PBS_JOBID.err
5#PBS -o sette.$PBS_JOBID.out
6#PBS -l nodes=NODES:ppn=NPROC_NODE
7#PBS -q QUEUE
8#PBS -l walltime=03:00:00
9#PBS -l pmem=3gb
10
11#
12# Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these
13# (via sed operating on this template job file).
14#
15  OCEANCORES=NPROCS
16  export SETTE_DIR=DEF_SETTE_DIR
17
18###############################################################
19#
20# set up mpp computing environment
21#
22# Local settings for machine IBM Power6 (VARGAS at IDRIS France)
23#
24#cbr export MPIRUN="mpiexec -n $OCEANCORES"
25export MPIRUN="mpirun -np $OCEANCORES"
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#
37# These variables are needed by post_test_tidyup function in all_functions.sh
38#
39  export EXE_DIR=DEF_EXE_DIR
40  export INPUT_DIR=DEF_INPUT_DIR
41  export CONFIG_DIR=DEF_CONFIG_DIR
42  export TOOLS_DIR=DEF_TOOLS_DIR
43  export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION
44  export NEW_CONF=DEF_NEW_CONF
45  export CMP_NAM=DEF_CMP_NAM
46  export TEST_NAME=DEF_TEST_NAME
47#
48# end of set up
49###############################################################
50#
51# change to the working directory
52#
53cd ${EXE_DIR}
54  echo Running on host `hostname`
55  echo Time is `date`
56  echo Directory is `pwd`
57#
58#  Run the parallel MPI executable
59#
60  echo "Running time ${MPIRUN} ./nemo"
61#
62  if [ MPI_FLAG == "yes" ]; then
63     mpirun -np $OCEANCORES ./nemo
64  else
65     time ./nemo
66  fi
67
68#
69  post_test_tidyup
70
71# END_BODY
72# Don't remove neither change the previous line
73
74
75  exit
Note: See TracBrowser for help on using the repository browser.