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.
Changeset 2494 – NEMO

Changeset 2494


Ignore:
Timestamp:
2010-12-20T15:45:25+01:00 (13 years ago)
Author:
flavoni
Message:

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

Location:
branches/nemo_v3_3_beta/NEMOGCM/SETTE
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/nemo_v3_3_beta/NEMOGCM/SETTE/all_functions.sh

    r2359 r2494  
    2626# :: 
    2727# 
    28 #  $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC 
     28#  $ ./set_namelist.sh INPUT_NAMELIST VARIABLE VALUE  
    2929# 
    3030# 
     
    3535# Simple job for SET TESTS for NEMO (SETTE) 
    3636 
     37# function superegrep 
     38# input variable value 
     39 
    3740# function set_namelist 
    38 # input variable value 
     41# input namelist_name variable value 
    3942# output namelist 
    4043 
     
    4447    } 
    4548 
    46 # USAGE : if you want to add a string with " : ./test var_name \"new_value\" 
     49usage=" Usage : set_namelist input_namelist variable_name value" 
     50usage=" if value is a string ths is neede syntax : ./set_namelist namelist_name var_name \"new_value\" 
     51 
    4752# function to set namelists parameters 
    4853set_namelist () { 
  • branches/nemo_v3_3_beta/NEMOGCM/SETTE/fcm_job.sh

    r2361 r2494  
    6666if [ "$(cat $1 | grep -c ".tar" )" -ne 0 ] ; then 
    6767   cp ${FORCING_DIR}/${tar_file} ${INPUT_DIR}/. 
    68    cd ${INPUT_DIR} ; tar xvf ${INPUT_DIR}/*.tar 
     68   cd ${INPUT_DIR} ; tar xvf ${INPUT_DIR}/*.tar ; gunzip *gz 
    6969fi  
    7070 
     
    8989   ./opa 
    9090else 
     91# example for brodie (NEC SX8) machine 
    9192   mpirun -np ${NB_PROC} opa 
    9293# example for dedale machine 
    9394#  mpirun --mca btl self,tcp -np ${NB_PROC} opa 
    94 # example for vargas machine 
     95# example for vargas (IBM Power6) machine 
    9596#  mpiexec -n ${NB_PROC} opa 
    9697fi 
  • branches/nemo_v3_3_beta/NEMOGCM/SETTE/sette.sh

    r2359 r2494  
    1 #  $ ./sette.sh 
    21# 
    32# 
     
    1312# $Id: sette.sh 2158 2010-10-28 12:30:03Z sflod $ 
    1413# 
    15 # 
    16 # 
    1714#   * creation 
    18 # 
    1915#- 
    2016# 
    21 SETTE_DIR=/usr/temp/sflod/NEMOGCM/SETTE 
     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 
    2251 
    2352cd ${SETTE_DIR} 
     
    2655. param.cfg 
    2756. all_functions.sh 
    28 set_namelist nn_it000 1 
    29 set_namelist nn_itend 75 
     57set_namelist namelist nn_it000 1 
     58set_namelist namelist nn_itend 75 
    3059cd ${SETTE_DIR} 
    3160. ./fcm_job.sh input_GYRE.cfg 1 
     61echo "finished first test" 
     62echo "###################" 
     63sleep 3 
    3264 
     65echo "starting second test" 
     66sleep 3 
    3367cd ${SETTE_DIR} 
    3468. ../CONFIG/makenemo -n ORCA2_LIM_1_2 add_key "key_mpp_mpi key_nproci=1 key_nprocj=2" 
     
    3670. param.cfg 
    3771. all_functions.sh 
    38 set_namelist nn_it000 1 
    39 set_namelist nn_itend 75 
     72set_namelist namelist nn_it000 1 
     73set_namelist namelist nn_itend 75 
    4074cd ${SETTE_DIR} 
    4175. ./fcm_job.sh input_ORCA2_LIM.cfg 2 
     76echo "finished second test" 
     77sleep 3 
    4278 
Note: See TracChangeset for help on using the changeset viewer.