source: branches/2012/dev_MERCATOR_2012_rev3555/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-ifort_MERCATOR_CLUSTER @ 3583

Last change on this file since 3583 was 3583, checked in by cbricaud, 8 years ago

add modification from dev_r3327_MERCATOR1_BDY branch in dev_MERCATOR_2012_rev3555 branch

  • 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=NPROCSNODE
7#PBS -q QUEUE
8#PBS -l walltime=03:00:00
9#PBS -l mem=MEMgb
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  if [ MPI_FLAG == "yes" ]; then
60  echo "Running time ${MPIRUN} ./opa"
61     time ${MPIRUN} ./opa
62#cbr     mpirun -np $OCEANCORES ./opa
63  else
64  echo "Running time ./opa"
65     time ./opa
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.