source: trunk/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-ifort_MERCATOR_CLUSTER @ 3520

Last change on this file since 3520 was 3336, checked in by clevy, 9 years ago

SETTE bugfixes see ticket #941

  • Property svn:executable set to *
File size: 1.5 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=2:ppn=8
7#PBS -q multi
8#PBS -l walltime=03:00:00
9#PBS -l mem=24gb
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#
24export MPIRUN="mpiexec -n $OCEANCORES"
25
26#
27# load sette functions (only post_test_tidyup needed)
28#
29  . ${SETTE_DIR}/all_functions.sh
30#
31
32# Don't remove neither change the following line
33# BODY
34
35#
36# These variables are needed by post_test_tidyup function in all_functions.sh
37#
38  export EXE_DIR=DEF_EXE_DIR
39  export INPUT_DIR=DEF_INPUT_DIR
40  export CONFIG_DIR=DEF_CONFIG_DIR
41  export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION
42  export NEW_CONF=DEF_NEW_CONF
43  export CMP_NAM=DEF_CMP_NAM
44  export TEST_NAME=DEF_TEST_NAME
45#
46# end of set up
47###############################################################
48#
49# change to the working directory
50#
51cd ${EXE_DIR}
52
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  if [ MPI_FLAG == "yes" ]; then
60  echo "Running time ${MPIRUN} ./opa"
61     time ${MPIRUN} ./opa
62  else
63  echo "Running time ./opa"
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.