source: trunk/NEMOGCM/SETTE/sette_beginner.sh @ 2769

Last change on this file since 2769 was 2754, checked in by flavoni, 10 years ago

small changes for SETTE tests, see ticket #752

  • Property svn:executable set to *
File size: 1.9 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 -x
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=gfortran_linux
41
42# Directory to run the tests
43SETTE_DIR=$(cd $(dirname "$0"); pwd)
44MAIN_DIR=${SETTE_DIR%/SETTE}
45CONFIG_DIR=${MAIN_DIR}/CONFIG
46TOOLS_DIR=${MAIN_DIR}/TOOLS
47COMPIL_DIR=${TOOLS_DIR}/COMPILE
48
49CMP_NAM=${1:-$COMPILER}
50
51# Run for GYRE CONFIG
52# small test to start
53# compile GYRE configuration with gfortran_osx compiler run with 1 proc, by default in cpp_GYRE.fcm file :
54cd ${SETTE_DIR}
55. ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_SHORT -r GYRE
56cd ${SETTE_DIR}
57. param.cfg
58. all_functions.sh
59# setting namelist parameters
60# experience name
61set_namelist namelist cn_exp \"GYRE_SHORT\"
62# first time step
63set_namelist namelist nn_it000 1
64# last time step
65set_namelist namelist nn_itend 120
66# frequency of creation of a restart file
67set_namelist namelist nn_stock 60
68cd ${SETTE_DIR}
69# run job, with 1 processor, test named SHORT (= 60 time steps)
70. ./fcm_job.sh input_GYRE.cfg 1 SHORT
Note: See TracBrowser for help on using the repository browser.