source: branches/2012/dev_r3438_LOCEAN15_PISLOB/NEMOGCM/SETTE/sette_beginner.sh @ 3533

Last change on this file since 3533 was 3533, checked in by flavoni, 8 years ago

update SETTE, add CURIE machine, see ticket: #941

  • Property svn:executable set to *
File size: 2.5 KB
Line 
1#!/bin/bash
2#############################################################
3# Author : Simona Flavoni for NEMO
4# Contact : sflod@locean-ipsl.upmc.fr
5#
6# sette.sh   : principal script of SET TEsts for NEMO (SETTE)
7# ----------------------------------------------------------------------
8# NEMO/SETTE , NEMO Consortium (2010)
9# Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
10# ----------------------------------------------------------------------
11#
12#############################################################
13#set -vx
14set -o posix
15#set -u
16#set -e
17#+
18#
19# ===================
20# sette_beginner.sh
21# ===================
22#
23# ----------------------------------------------
24# Set of tests for NEMO for beginners
25# ----------------------------------------------
26#
27# SYNOPSIS
28# ========
29#
30# ::
31#
32#  $ ./sette_beginner.sh
33#
34# DESCRIPTION
35# ===========
36# First simple example of how to use SETTE: create GYRE_SHORT configuration, compile it with 1 proc, and test it for a SHORT test: 5days
37#-
38#
39# Compiler among those in NEMOGCM/ARCH
40COMPILER=PW6_VARGAS
41export BATCH_COMMAND_PAR="llsubmit"
42export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR
43export INTERACT_FLAG="no"
44export MPIRUN_FLAG="yes"
45
46# Directory to run the tests
47SETTE_DIR=$(cd $(dirname "$0"); pwd)
48MAIN_DIR=${SETTE_DIR%/SETTE}
49CONFIG_DIR=${MAIN_DIR}/CONFIG
50TOOLS_DIR=${MAIN_DIR}/TOOLS
51COMPIL_DIR=${TOOLS_DIR}/COMPILE
52
53CMP_NAM=${1:-$COMPILER}
54# Copy job_batch_COMPILER file for specific compiler into job_batch_template
55cd ${SETTE_DIR}
56cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
57
58# Run for GYRE CONFIG
59# small test to start
60# compile GYRE configuration with gfortran_osx compiler run with 1 proc, by default in cpp_GYRE.fcm file :
61export TEST_NAME="prova_beginner"
62cd ${SETTE_DIR}
63. ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_SHORT -r GYRE -j 10 add_key "key_mpp_mpi"
64cd ${SETTE_DIR}
65. param.cfg
66. all_functions.sh
67# creation of execution directory
68. prepare_exe_dir.sh
69JOB_FILE=${EXE_DIR}/run_job.sh
70NPROC=4
71\rm $JOB_FILE
72cd ${EXE_DIR}
73# setting namelist parameters
74# experience name
75set_namelist namelist cn_exp \"GYRE_SHORT\"
76# first time step
77set_namelist namelist nn_it000 1
78# last time step
79set_namelist namelist nn_itend 120
80# frequency of creation of a restart file
81set_namelist namelist nn_stock 60
82
83cd ${SETTE_DIR}
84. ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE}
85# run job, with 1 processor, test named SHORT (= 60 time steps)
86cd ${SETTE_DIR}   
87. ./fcm_job.sh 4 ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
Note: See TracBrowser for help on using the repository browser.