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.
sette_beginner.sh in branches/2013/dev_MERGE_2013/NEMOGCM/SETTE – NEMO

source: branches/2013/dev_MERGE_2013/NEMOGCM/SETTE/sette_beginner.sh @ 4291

Last change on this file since 4291 was 4147, checked in by cetlod, 10 years ago

merge in dev_LOCEAN_2013, the 1st development branch dev_r3853_CNRS9_Confsetting, from its starting point ( r3853 ) on the trunk: see ticket #1169

  • 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=macport_osx
41export BATCH_COMMAND_PAR="llsubmit"
42export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR
43export INTERACT_FLAG="yes"
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}
56##if [ ${INTERACT_FLAG} == no ] ;  then
57    cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit
58##fi
59
60# Run for GYRE CONFIG
61# small test to start
62# compile GYRE configuration with gfortran_osx compiler run with 4 proc :
63export TEST_NAME="SHORT_TEST"
64cd ${CONFIG_DIR}
65. ./makenemo -m ${CMP_NAM} -n GYRE_SHORT -r GYRE -j 10 add_key "key_mpp_mpi key_nosignedzero"
66cd ${SETTE_DIR}
67. param.cfg
68. all_functions.sh
69# creation of execution directory
70. prepare_exe_dir.sh
71JOB_FILE=${EXE_DIR}/run_job.sh
72NPROC=4
73\rm $JOB_FILE
74cd ${EXE_DIR}
75# setting namelist parameters
76# experience name
77set_namelist namelist_cfg cn_exp \"GYRE_SHORT\"
78# first time step
79set_namelist namelist_cfg nn_it000 1
80# last time step
81set_namelist namelist_cfg nn_itend 120
82# frequency of creation of a restart file
83set_namelist namelist_cfg nn_stock 60
84
85cd ${SETTE_DIR}
86. ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE}
87# run job, with 4 processors, test named SHORT (= 60 time steps)
88cd ${SETTE_DIR}   
89. ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG}
Note: See TracBrowser for help on using the repository browser.