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

source: branches/nemo_v3_3_beta/NEMOGCM/SETTE/sette.sh @ 2494

Last change on this file since 2494 was 2494, checked in by flavoni, 14 years ago

add README to use sette utility, and small enhancements, see ticket #752

  • Property svn:executable set to *
File size: 2.4 KB
Line 
1#
2#
3# TODO
4# ====
5#
6# option debug
7#
8#
9# EVOLUTIONS
10# ==========
11#
12# $Id: sette.sh 2158 2010-10-28 12:30:03Z sflod $
13#
14#   * creation
15#-
16#
17# This is the principal script of SETTE
18# here are described some examples to run nemo
19# this script creates MY_CONFIG directory and in this one there is VALIDATION directory
20# in which are stored output files
21# at this point of developpement there is no automatic diff of solver.stat files
22# user have to set duration of the run with set_namelist function
23# and if he wants to do a restart (again with set_namelist function)
24# and then he has to compare by hand output solver.stat
25#
26# USER MODIFICATIONS
27# in sette.sh script :
28#     SETTE_DIR : base directory for SETTE
29#     makenemo -m : machine (compilator); see ./makenemo -m help
30#         -n : config name (in examples config_name_nproci_nprocj), see ./makenemo -n help
31#         -r : reference configuration (if you don't give it you have to choise directories to install)
32#         add_key : to add list of keys (for example to test reproductibility: add_key mpp_rep)
33#         del_key : to del list of keys
34#     and for more details and options of makenemo see ./makenemo -h
35#     fcm_job.sh needs input: input_CONFIG_NAME and TOTAL NUMBER OF PROCS used
36# in param.cfg :
37#     EXE_DIR     : directory in which execute jobs (by default CONFIG_DIR)   
38#     FORCING_DIR : directory where to get input tar file
39#     INPUT_DIR   : directory in which store input files
40#     TMPDIR      : temporary directory NEEDED ONLY FOR IBM machines (put EXP00 directory)
41#     OUTPUT_DIR  : directory in which store output files
42# in fcm_job.sh :
43#     IMPORTANT : control that name of tar file in FORCING directory
44#     is the same of that in input_REF_CONFIG.cfg, if not change one.
45#     change in "RUN OPA" part the command line (some examples are already written)
46
47SETTE_DIR=PATH OF SETTE
48
49echo "starting first test"
50sleep 3
51
52cd ${SETTE_DIR}
53. ../CONFIG/makenemo -m ifort_linux -n GYRE_1_1 -r GYRE
54cd ${SETTE_DIR}
55. param.cfg
56. all_functions.sh
57set_namelist namelist nn_it000 1
58set_namelist namelist nn_itend 75
59cd ${SETTE_DIR}
60. ./fcm_job.sh input_GYRE.cfg 1
61echo "finished first test"
62echo "###################"
63sleep 3
64
65echo "starting second test"
66sleep 3
67cd ${SETTE_DIR}
68. ../CONFIG/makenemo -n ORCA2_LIM_1_2 add_key "key_mpp_mpi key_nproci=1 key_nprocj=2"
69cd ${SETTE_DIR}
70. param.cfg
71. all_functions.sh
72set_namelist namelist nn_it000 1
73set_namelist namelist nn_itend 75
74cd ${SETTE_DIR}
75. ./fcm_job.sh input_ORCA2_LIM.cfg 2
76echo "finished second test"
77sleep 3
78
Note: See TracBrowser for help on using the repository browser.