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 @ 2495

Last change on this file since 2495 was 2495, checked in by flavoni, 13 years ago

changed comment in sette.sh, 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#     set_namelist : to set namelist values
36                        (example : to set 75 time steps for one test : namelist nn_itend 75)
37                        (        : to change cn_icerst_in name : namelist_ice cn_icerst_in  \"test_00101231_restart_icemod.nc\")
38                        (        : to activate control print : namelist ln_ctl \".false.\" )
39#     fcm_job.sh needs input: input_CONFIG_NAME and TOTAL NUMBER OF PROCS used
40#
41SETTE_DIR=PATH OF SETTE
42
43echo "starting first test"
44sleep 3
45
46# first example: create test for GYRE with nproci=1, nprocj=1, run for 75 time steps
47cd ${SETTE_DIR}
48. ../CONFIG/makenemo -m ifort_linux -n GYRE_1_1 -r GYRE
49cd ${SETTE_DIR}
50. param.cfg
51. all_functions.sh
52set_namelist namelist nn_it000 1
53set_namelist namelist nn_itend 75
54cd ${SETTE_DIR}
55. ./fcm_job.sh input_GYRE.cfg 1
56echo "finished first test"
57echo "###################"
58sleep 3
59
60echo "starting second test"
61sleep 3
62
63# second example: create test for ORCA2_LIM with nproci=1, nprocj=2, run for 75 time steps
64cd ${SETTE_DIR}
65. ../CONFIG/makenemo -n ORCA2_LIM_1_2 add_key "key_mpp_mpi key_nproci=1 key_nprocj=2"
66cd ${SETTE_DIR}
67. param.cfg
68. all_functions.sh
69set_namelist namelist nn_it000 1
70set_namelist namelist nn_itend 75
71cd ${SETTE_DIR}
72. ./fcm_job.sh input_ORCA2_LIM.cfg 2
73echo "finished second test"
74sleep 3
75
Note: See TracBrowser for help on using the repository browser.