source: trunk/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-openmpi_NAVITI_MERCATOR @ 5559

Last change on this file since 5559 was 5559, checked in by jchanut, 5 years ago

Update MERCATOR SETTE scripts

  • Property svn:executable set to *
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 NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION
43  export NEW_CONF=DEF_NEW_CONF
44  export CMP_NAM=DEF_CMP_NAM
45  export TEST_NAME=DEF_TEST_NAME
46#
47# end of set up
48###############################################################
49#
50# change to the working directory
51#
52cd ${EXE_DIR}
53  echo Running on host `hostname`
54  echo Time is `date`
55  echo Directory is `pwd`
56#
57#  Run the parallel MPI executable
58#
59  echo "Running time ${MPIRUN} ./opa"
60#
61  if [ MPI_FLAG == "yes" ]; then
62     mpirun -np $OCEANCORES ./opa
63  else
64     time ./opa
65  fi
66
67#
68  post_test_tidyup
69
70# END_BODY
71# Don't remove neither change the previous line
72
73
74  exit
Note: See TracBrowser for help on using the repository browser.