source: branches/2017/dev_merge_2017/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-openmpi_KARA_MERCATOR_XIOS @ 9480

Last change on this file since 9480 was 9480, checked in by cbricaud, 3 years ago

modify SETTE for new MERCATOR cluster ( KARA )

  • Property svn:executable set to *
File size: 1.6 KB
Line 
1#!/bin/sh
2#SBATCH -J sette
3#SBATCH -o sette.%j.out
4#SBATCH -e sette.%j.err
5#SBATCH -N NODES
6#SBATCH --ntasks-per-node=NPROC_NODE
7#SBATCH -p multi
8#SBATCH --time=02:00:00
9#SBATCH --exclusive
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} ./opa"
61#
62  if [ MPI_FLAG == "yes" ]; then
63     mpirun -np $OCEANCORES ./opa
64  else
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.