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-ifort_MERCATOR_CLUSTER in branches/2012/dev_NOC_MERCATOR_2012/NEMOGCM/SETTE/BATCH_TEMPLATE – NEMO

source: branches/2012/dev_NOC_MERCATOR_2012/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-ifort_MERCATOR_CLUSTER @ 3665

Last change on this file since 3665 was 3665, checked in by cbricaud, 11 years ago

correction of Mercator's modifications for prepare_job.sh

  • 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 pvmem=5gb
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.