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

Last change on this file since 3294 was 3294, checked in by rblod, 9 years ago

Merge of 3.4beta into the trunk

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