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/2012/dev_NOC_2012_rev3555/NEMOGCM/SETTE – NEMO

source: branches/2012/dev_NOC_2012_rev3555/NEMOGCM/SETTE/sette_beginner.sh @ 3608

Last change on this file since 3608 was 3608, checked in by acc, 11 years ago

Branch dev_NOC_2012_r3555. #1006. Step 3: Merge in trunk changes between revision 3322 and 3337

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