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 2890 – NEMO

Changeset 2890


Ignore:
Timestamp:
2011-10-06T13:03:48+02:00 (13 years ago)
Author:
flavoni
Message:

update SETTE

Location:
branches/2011/dev_r2855_LOCEAN7_SETTE/NEMOGCM/SETTE
Files:
7 added
7 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_r2855_LOCEAN7_SETTE/NEMOGCM/SETTE/README

    r2757 r2890  
    1111               COMPILER    : compiler among those available in NEMOGCM/ARCH, needed for makenemo (see below) 
    1212                             can also be pass as an argument, e.g. ./sette.sh ifort_osx 
     13          BATCH_COMMAND : command for job submission in batch mode 
     14          MPI_INTERACT : "yes" if you want to run in interactive mode for MPI run 
     15                     "no" if you want to run in batch mode for MPI run 
     16               NOTE : every job using only 1 proc is run in interactive mode 
     17 
    1318               makenemo -m : machine (compilator); see ./makenemo -m help (in NEMOGCM/CONFIG directory) 
    1419                        -n : config name (in examples config_name_nproci_nprocj), see ./makenemo -n help 
     
    1722                        del_key : to del list of keys 
    1823               and for more details and options of makenemo see ./makenemo -h 
     24 
    1925          set_namelist : to set namelist values  
    2026         (example : to set 75 time steps for one test : namelist nn_itend 75) 
    2127         (        : to change cn_icerst_in name : namelist_ice cn_icerst_in  \"test_00101231_restart_icemod\") 
    2228         (      : to activate control print : namelist ln_ctl false ) 
    23           copy_original : to namelist of reference configuration in configuration directory in which tests are done 
     29          prepare_exe_dir.sh creates execution directory for each test 
     30                    : NOTE for EACH JOB EXECUTION it is needed to set TEST_NAME variable 
     31                TEST_NAME variable gives name to execution directory (created in prepare_exe_dir.sh) 
     32                IT is mandatory to have different TEST_NAME for each job run if not existing files are re-written (for example namelist) 
     33 
    2434               fcm_job.sh needs input: input_CONFIG_NAME TOTAL_NUMBER_OF_PROCS_used TEST_NAME 
    2535         (for example if you compile ORCA2_LIM with key_mpp_mpi  
    2636         and only run short test ===> ./fcm_job input_ORCA2_LIM.cfg 4 SHORT) 
     37 
    2738 in param.cfg : 
    28                EXE_DIR           : directory in which job s executed (by default CONFIG_DIR) 
    2939               FORCING_DIR       : directory in which will be found input.tar file (same name in input_CONFIG_NAME.cfg) 
    30                INPUT_DIR         : directory in which store input files 
     40               INPUT_DIR         : directory in which store input files (tar file) 
    3141               TMPDIR            : temporary directory NEEDED ONLY FOR IBM machines (put EXP00 directory) 
    32                OUTPUT_DIR        : directory in which store output files 
    3342          NEMO_VALIDATION_DIR : directory in which create NEMO_VALIDATION tree, and store restart, solver.stat and ocean.output files in 
    3443                            tree NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) 
     
    3645               IMPORTANT : control that name of tar file in FORCING directory 
    3746               is the same of that in input_REF_CONFIG.cfg, if not change one. 
    38                change in "RUN OPA" part the command line (some examples are already written) 
    39           TEST_NAME by convention is LONG: 10 days run or SHORT: 5 days run 
    40           so NEMO_VALIDATION tree is coherent, 
    41           but user can choise a TEST_NAME that represent his own test. 
     47 
     48               change in "RUN OPA" if [ ${MPI_INTERACT} == "yes" ] mpirun command line (some examples are already written) 
     49          NOTE: if MPI_INTERACT="no" it is neede a batch_file (see below to create a new one) 
    4250 
    4351NOTE: 
     
    62701. add arch-compiler.fcm in NEMOGCM/ARCH directory 
    63712. makenemo -m new_compiler  (see makenemo -h for help) 
     72 
     73TO ADD NEW BATCH-FILE: 
     741. see in SETTE/BATCH_TEMPLATE directory existing examples 
     752. create you own batch file like: batch-${COMPILER} 
     76(note: sette.sh will copy it in job_batch_template if you run tests in MPI_INTERACT="no") 
  • branches/2011/dev_r2855_LOCEAN7_SETTE/NEMOGCM/SETTE/all_functions.sh

    r2756 r2890  
    3131# 
    3232#  $ ./set_namelist INPUT_NAMELIST VARIABLE VALUE  
    33 #  $ ./copy_original INPUT_NAMELIST  
     33#  $ post_test_tidyup  
    3434# 
    3535# 
     
    3939# function superegrep 
    4040#   input variable value 
    41 # 
    42 # function copy_original 
    43 #   input namelist_name 
    44 #   output namelist  
    4541# 
    4642# function set_namelist 
     
    4844#   output namelist 
    4945# 
     46# function post_test_tidyup 
     47#   creates nemo_validation tree, and save output & debug files 
     48#   this function creates tree of validation in NEMO_VALIDATION_DIR as follows :  
     49# 
     50# NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/REVISION_NUMBER(or DATE)/TEST_NAME 
     51#  
     52# NEMO_VALIDATION_DIR           : is choosen in param.cfg 
     53# 
     54# WCONFIG_NAME                  : set by makenemo at the moment of compilation 
     55# 
     56# WCOMPILER_NAME                : set by makenemo at the moment of compilation 
     57# 
     58# REVISION_NUMBER(or DATE)      : revision number by svn info, if problems with svn date is taken 
     59# 
     60# TEST_NAME                     : set in sette.sh for each configuration to be tested (directory TEST_NAME is created under ${NEW_CONF} directory ) 
     61# 
    5062# EXAMPLES 
    5163# ======== 
     
    5365# :: 
    5466# 
    55 #  $ ./copy_original namelist_pisces          
    5667#  $ ./set_namelist namelist          nn_itend        75 
    5768#  $ ./set_namelist namelist_ice_lim2 cn_icerst_in  \"00101231_restart_ice\" 
     69#  $ post_test_tidyup  
    5870# 
    5971# 
     
    7183#   * creation 
    7284#- 
    73 # 
    74  
    75  
    76 # function to copy original namelists in ORIGINAL_namelist directory in ${INPUT_DIR} directory 
    77 # to allow re-run same tests in same directory and start with all correct values of namelist 
    78 copy_original () { 
    79         `mkdir -p ${INPUT_DIR}/ORIGINAL_namelist` 
    80    if [ -d ${INPUT_DIR}/ORIGINAL_namelist ] ; then 
    81            echo "created ${INPUT_DIR}/ORIGINAL_namelist directory in ${INPUT_DIR}"   >> ${SETTE_DIR}/output.sette 
    82    else 
    83            echo "problems in creating ${INPUT_DIR}/ORIGINAL_namelist directory"   >> ${SETTE_DIR}/output.sette 
    84            echo "EXIT," 
    85            exit 1 
    86    fi 
    87         `cp ${CONFIG_DIR}/${REF_CONF}/EXP00/$1 ${INPUT_DIR}/ORIGINAL_namelist/$1.ori` 
    88    if [ -n "$(ls ${INPUT_DIR}/ORIGINAL_namelist/$1.ori)" ] ; then 
    89       echo "copied namelist of reference configuration in ${INPUT_DIR}/ORIGINAL_namelist/$1.ori " >> ${SETTE_DIR}/output.sette 
    90    else 
    91       echo "problem in copying namelist of reference configuration in ${INPUT_DIR}/ORIGINAL_namelist/$1.ori " >> ${SETTE_DIR}/output.sette 
    92            echo "EXIT," 
    93            exit 1 
    94    fi 
    95         `cp ${INPUT_DIR}/ORIGINAL_namelist/$1.ori ${INPUT_DIR}/$1` 
    96    if [ -n "$(ls ${INPUT_DIR}/$1)" ] ; then 
    97       echo "copied original namelist in ${INPUT_DIR} directory " >> ${SETTE_DIR}/output.sette 
    98    else 
    99            echo "problem in copying  original namelist in ${INPUT_DIR} directory"  >> ${SETTE_DIR}/output.sette 
    100            echo "EXIT," 
    101            exit 1 
    102    fi 
    103 } 
    104  
    10585# function to find namelists parameters 
    10686supergrep () { 
     
    128108        echo "################" >> ${SETTE_DIR}/output.sette 
    129109       
    130    VAR_NAME=$( supergrep $2 ${INPUT_DIR}/$1 ) 
     110   VAR_NAME=$( supergrep $2 ${EXE_DIR}/$1 ) 
    131111   if [ ${#VAR_NAME} -eq 0 ]  
    132112   then 
    133113      echo "doing \"set_namelist $@\". " 
    134114      echo "variable: \"$2\" is empty" 
    135       echo "control that variable $2 is in \"${INPUT_DIR}/$1\" " 
     115      echo "control that variable $2 is in \"${EXE_DIR}/$1\" " 
    136116      echo "exit" 
    137117      echo "error in executing script : set_namelist $@" >> ${SETTE_DIR}/output.sette 
     
    139119      exit 1 
    140120   fi 
    141         sed -e "s/${VAR_NAME}.*/${VAR_NAME}/" ${INPUT_DIR}/$1 > ${INPUT_DIR}/$1.tmp 
    142         mv ${INPUT_DIR}/$1.tmp ${INPUT_DIR}/$1 
    143         sed -e "s/${VAR_NAME}/$2=$3/"  ${INPUT_DIR}/$1 > ${INPUT_DIR}/$1.tmp 
    144         mv ${INPUT_DIR}/$1.tmp ${INPUT_DIR}/$1 
     121        sed -e "s/${VAR_NAME}.*/${VAR_NAME}/" ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp 
     122        mv ${EXE_DIR}/$1.tmp ${EXE_DIR}/$1 
     123        sed -e "s/${VAR_NAME}/$2=$3/"  ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp 
     124        mv ${EXE_DIR}/$1.tmp ${EXE_DIR}/$1 
    145125 
    146126        echo "finished script : set_namelist $@" >> ${SETTE_DIR}/output.sette 
     
    148128        echo "                " >> ${SETTE_DIR}/output.sette 
    149129} 
     130 
     131# function to tidy up after each test and populate the NEMO_VALIDATION store 
     132post_test_tidyup () { 
     133# 
     134# requires the following variables defined and exported from the calling script: 
     135#  SETTE_DIR 
     136#  INPUT_DIR 
     137#  EXE_DIR 
     138#  CONFIG_DIR 
     139#  NEMO_VALIDATION_DIR 
     140#  NEW_CONF 
     141#  CMP_NAM 
     142#  TEST_NAME 
     143echo "SETTE directory is : ${SETTE_DIR}" 
     144echo "INPUT directory is : ${INPUT_DIR}" 
     145echo "EXECUTION directory is : ${EXE_DIR}" 
     146echo "CONFIG directory is : ${CONFIG_DIR}" 
     147echo "VALIDATION directory is : ${NEMO_VALIDATION_DIR}" 
     148echo "NEW CONFIGURATION is : ${NEW_CONF}" 
     149echo "COMPILER is : ${CMP_NAM}" 
     150echo "TEST is : ${TEST_NAME}" 
     151################################################################ 
     152# SMALL DEBUG 
     153    if [ ! -r ${EXE_DIR}/time.step ] 
     154        then 
     155        echo "file time.step does not exist"   >> ${SETTE_DIR}/output.sette 
     156        echo "some problems during execution of model"  >> ${SETTE_DIR}/output.sette  
     157        exit 1 
     158    else 
     159        echo "file time.step exists"  >> ${SETTE_DIR}/output.sette 
     160        echo "ok model run"   >> ${SETTE_DIR}/output.sette 
     161    fi 
     162################################################################ 
     163 
     164################################################################ 
     165# Creation of NEMO_VALIDATION tree 
     166    export LANG=en_US  
     167    cd ${CONFIG_DIR} 
     168    cd ../ 
     169    REVISION_NB=`svn info | grep -i "Revision:" | sed -e "s/ //" | cut -d ":" -f 2` 
     170    if [ ${#REVISION_NB} -eq 0 ] 
     171    then 
     172      echo "some problems with svn info command" 
     173      echo "some problems with svn info command" >> ${SETTE_DIR}/output.sette 
     174      REVISION_NB=`date +%Y%m%d` 
     175      echo "put in ${REVISION_NB} date" 
     176      echo "put in ${REVISION_NB} date" >> ${SETTE_DIR}/output.sette 
     177    else 
     178    echo "value of revision number of NEMOGCM: ${REVISION_NB}" 
     179    fi 
     180    cd ${NEMO_VALIDATION_DIR} 
     181    `mkdir -p ${NEMO_VALIDATION_DIR}/W${NEW_CONF}/${CMP_NAM}/${REVISION_NB}/${TEST_NAME}` 
     182    NEMO_VALID=${NEMO_VALIDATION_DIR}/W${NEW_CONF}/${CMP_NAM}/${REVISION_NB}/${TEST_NAME} 
     183    if [ -d ${NEMO_VALID} ] ; then 
     184   echo "created ${NEMO_VALID} directory"   >> ${SETTE_DIR}/output.sette 
     185    else  
     186   echo "problems in creating ${NEMO_VALID} directory"   >> ${SETTE_DIR}/output.sette 
     187   echo "EXIT," 
     188   exit 1 
     189    fi 
     190    # Save output & debug files in NEMO_VALIDATION tree 
     191    echo "saving ocean & ice output, solver.stat files ...." >> ${SETTE_DIR}/output.sette 
     192    echo "            " >> ${SETTE_DIR}/output.sette 
     193    [ -f ${EXE_DIR}/*ocean.output ] && cp ${EXE_DIR}/*ocean.output ${NEMO_VALID}/. 
     194    [ -f ${EXE_DIR}/*solver.stat ] && cp ${EXE_DIR}/*solver.stat ${NEMO_VALID}/. 
     195    if [ -n "$(ls ${NEMO_VALID}/*solver*)" ] ; then 
     196   echo "moved solver.stat in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
     197   echo "moved solver.stat in ${NEMO_VALID} directory"   
     198    else 
     199   echo "problem in looking for solver.stat file in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
     200   echo "solver.stat IS NOT in ${NEMO_VALID} directory"  
     201    fi 
     202    if [ -n "$(ls ${NEMO_VALID}/*ocean.output*)" ] ; then 
     203   echo "moved ocean.output in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
     204   echo "moved ocean.output in ${NEMO_VALID} directory"  
     205    else 
     206   echo "problem in looking for ocean.output file in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
     207   echo "ocean.output IS NOT in ${NEMO_VALID} directory"  
     208    fi 
     209} 
  • branches/2011/dev_r2855_LOCEAN7_SETTE/NEMOGCM/SETTE/fcm_job.sh

    r2687 r2890  
    3131# =========== 
    3232# 
    33 # 
    3433# Simple job for SET TESTS for NEMO (SETTE) 
    35 # 
    36 # this job creates tree of validation in NEMO_VALIDATION_DIR as follows :  
    37 # 
    38 # NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) 
    3934#  
    40 # NEMO_VALIDATION_DIR      : is choosen in param.cfg 
    41 # 
    42 # WCONFIG_NAME       : set by makenemo at the moment of compilation 
    43 # 
    44 # WCOMPILER_NAME     : set by makenemo at the moment of compilation 
    45 # 
    46 # TEST_NAME       : convention is LONG=10 days run, SHORT=5 days run 
    47 # 
    48 # REVISION_NUMBER(or DATE) : revision number by svn info, if problems with svn date is taken 
     35#   get input files (if needed) : tar file   
     36#  (note this job needs to have an input_CONFIG.cfg in which can be found input tar file name) 
     37# 
     38#   runs job in interactive or batch mode : all jobs using 1 process are run interactive, and all MPP jobs are 
     39# 
     40#   run in batch (MPI_INTERACT="no") or interactive (MPI_INTERACT="yes") see sette.sh and BATCH_TEMPLATE directory 
     41# 
     42#   and call post_test_tidyup function (that moves in NEMO_VALIDATION_DIR solver.stat & ocean.output) 
    4943# 
    5044# EXAMPLES 
     
    5549#  $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME 
    5650# 
    57 #  run a job of config GYRE with 1 processor test REPRODUCTINILITY 
     51#  run a job of config GYRE with 1 processor SHORT test ( 5 days ) 
    5852#  $ ./fcm_job.sh input_GYRE.cfg 1 SHORT 
    5953# 
     
    8175 
    8276usage=" Usage : ./fcm_job.sh input_CONFIG_NAME.cfg  NUMBER_OF_PROCS TEST_NAME" 
    83 usage=" example : ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 8 RUN" 
     77usage=" example : ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 8 SHORT" 
    8478 
    8579 
     
    9791   fi 
    9892        
     93# 
     94# set and export TEST_NAME. It will be used within the post_test_tidyup function 
     95# 
     96export TEST_NAME=$3 
     97 
     98# export EXE_DIR. This directory is used to execute model  
     99# 
     100export EXE_DIR 
     101# 
     102# 
    99103echo "date: `date`" >> ${SETTE_DIR}/output.sette 
    100104echo "" >> ${SETTE_DIR}/output.sette 
     
    117121   echo "            " >> ${SETTE_DIR}/output.sette 
    118122   cp ${FORCING_DIR}/${tar_file} ${INPUT_DIR}/. 
     123   echo "file in ${INPUT_DIR}" 
    119124   if [ ! -f ${INPUT_DIR}/${tar_file} ] ; then  
    120125      echo "PROBLEM during copy of tar file" >> ${SETTE_DIR}/output.sette 
     
    124129      exit 1 
    125130   else   
    126       cd ${INPUT_DIR} ; tar xvof ${INPUT_DIR}/*.tar ; gunzip -f *gz 
     131      cd ${EXE_DIR} ; tar xvof ${INPUT_DIR}/*.tar ; gunzip -f *gz 
    127132   fi 
    128133fi  
    129134 
    130 if [ -f ${INPUT_DIR}/namelist_ice_lim2 ] ; then  
     135if [ ! -f ${EXE_DIR}/namelist_ice ] ; then  
     136if [ -f ${EXE_DIR}/namelist_ice_lim2 ] ; then  
    131137   echo "choosing for namelist ice " >> ${SETTE_DIR}/output.sette 
    132138   echo "            " >> ${SETTE_DIR}/output.sette 
    133    cp ${INPUT_DIR}/namelist_ice_lim2 ${INPUT_DIR}/namelist_ice 
    134 elif  [ -f ${INPUT_DIR}/namelist_ice_lim3 ] ; then  
    135    cp ${INPUT_DIR}/namelist_ice_lim3 ${INPUT_DIR}/namelist_ice 
     139   cp ${EXE_DIR}/namelist_ice_lim2 ${EXE_DIR}/namelist_ice 
     140elif  [ -f ${EXE_DIR}/namelist_ice_lim3 ] ; then  
     141   cp ${EXE_DIR}/namelist_ice_lim3 ${EXE_DIR}/namelist_ice 
     142fi 
    136143fi 
    137144 
     
    141148      echo "choosing for namelist for AGRIF" >> ${SETTE_DIR}/output.sette 
    142149      echo "            " >> ${SETTE_DIR}/output.sette 
    143    cp ${INPUT_DIR}/1_namelist_ice_lim2 ${INPUT_DIR}/1_namelist_ice  
     150   cp ${EXE_DIR}/1_namelist_ice_lim2 ${EXE_DIR}/1_namelist_ice  
    144151fi 
    145152################################################################ 
     
    147154################################################################ 
    148155# RUN OPA 
    149 cd ${INPUT_DIR} 
     156cd ${EXE_DIR} 
    150157NB_PROC=$2 
    151 if [ ! -r ${INPUT_DIR}/opa ] 
     158if [ ! -r ${EXE_DIR}/opa ] 
    152159    then 
    153160    echo "executable opa does not exist" 
     
    159166    echo "            " >> ${SETTE_DIR}/output.sette 
    160167    ./opa 
     168# 
     169# Tidy out output from this test and populate the NEMO_VALIDATION_DIR tree 
     170# 
     171    post_test_tidyup 
    161172else 
    162173    echo "running opa in MPI" >> ${SETTE_DIR}/output.sette 
    163174    echo "            " >> ${SETTE_DIR}/output.sette 
    164 # example for brodie (NEC SX8) machine 
    165 #  mpirun -np ${NB_PROC} opa 
    166 # example for dedale machine 
    167 #  mpirun --mca btl self,tcp -np ${NB_PROC} opa 
    168 # example for vargas (IBM Power6) machine 
    169     mpiexec -n ${NB_PROC} opa 
    170 fi 
    171 ################################################################ 
    172 # SMALL DEBUG 
    173 # echo "control that time.step exists 
    174 if [ ! -r ${INPUT_DIR}/time.step ] 
    175     then 
    176     echo "file time.step does not exist"   >> ${SETTE_DIR}/output.sette 
    177     echo "some problems during execution of model"  >> ${SETTE_DIR}/output.sette  
    178     exit 1 
    179 else 
    180     echo "file time.step exists"  >> ${SETTE_DIR}/output.sette 
    181     echo "ok model run"   >> ${SETTE_DIR}/output.sette 
    182 fi 
    183 ################################################################ 
    184  
    185 ################################################################ 
    186 # SAVE OUTPUT, DEBUG & RESTART FILES 
    187 echo "saving ocean & ice output, debug & restart files" >> ${SETTE_DIR}/output.sette 
    188 echo "            " >> ${SETTE_DIR}/output.sette 
    189 [ ! -d ${OUTPUT_DIR} ] && mkdir ${OUTPUT_DIR} 
    190 [ -f *ocean.output ] && mv *ocean.output ${OUTPUT_DIR}/. 
    191 [ -f *solver.stat ] && mv *solver.stat ${OUTPUT_DIR}/. 
    192 [ -n "$(ls *_grid_*)" ] && mv *_grid_*.nc ${OUTPUT_DIR}/. 
    193 [ -n "$(ls *_ptrc_*)" ] && mv *_ptrc_*.nc ${OUTPUT_DIR}/. 
    194 [ -n "$(ls *_diad_*)" ] && mv *_diad_*.nc ${OUTPUT_DIR}/. 
    195 [ -n "`ls *restart*`" ] && cp *restart*.nc ${OUTPUT_DIR}/. 
    196 [ -f ice_evolu ] && mv ice_evolu ${OUTPUT_DIR}/. 
    197 [ -n "`ls *icemod*`" ] && mv *icemod* ${OUTPUT_DIR}/. 
    198 #- Save ftrace file 
    199 [ -f ftrace.out* ] && cp ftrace.out* ${OUTPUT_DIR}/. 
    200 ################################################################ 
    201  
    202 ################################################################ 
    203 # SAVE IN NEMO_VALIDATION tree 
    204 export LANG=en_US  
    205 cd ${CONFIG_DIR} 
    206 cd ../ 
    207 REVISION_NB=`svn info | grep -i "Revision:" | sed -e "s/ //" | cut -d ":" -f 2` 
    208 if [ ${#REVISION_NB} -eq 0 ] 
    209 then 
    210    echo "some problems with svn info command" 
    211    echo "some problems with svn info command" >> ${SETTE_DIR}/output.sette 
    212    REVISION_NB=`date +%Y%m%d` 
    213    echo "put in ${REVISION_NB} date" 
    214    echo "put in ${REVISION_NB} date" >> ${SETTE_DIR}/output.sette 
    215 else 
    216 echo "value of revision number of NEMOGCM: ${REVISION_NB}" 
    217 fi 
    218 cd ${NEMO_VALIDATION_DIR} 
    219 export TEST_NAME=$3 
    220 `mkdir -p ${NEMO_VALIDATION_DIR}/W${NEW_CONF}/${CMP_NAM}/${REVISION_NB}/${TEST_NAME}` 
    221 NEMO_VALID=${NEMO_VALIDATION_DIR}/W${NEW_CONF}/${CMP_NAM}/${REVISION_NB}/${TEST_NAME} 
    222 if [ -d ${NEMO_VALID} ] ; then 
    223    echo "created ${NEMO_VALID} directory"   >> ${SETTE_DIR}/output.sette 
    224 else  
    225    echo "problems in creating ${NEMO_VALID} directory"   >> ${SETTE_DIR}/output.sette 
    226    echo "EXIT," 
    227    exit 1 
    228 fi 
    229 [ -f ${OUTPUT_DIR}/*ocean.output ] && mv ${OUTPUT_DIR}/*ocean.output ${NEMO_VALID}/. 
    230 [ -f ${OUTPUT_DIR}/*solver.stat ] && mv ${OUTPUT_DIR}/*solver.stat ${NEMO_VALID}/. 
    231 [ -n "`ls ${OUTPUT_DIR}/*restart*`" ] && mv ${OUTPUT_DIR}/*restart* ${NEMO_VALID}/. 
    232 [ -f ${OUTPUT_DIR}/ice_evolu ] && mv ${OUTPUT_DIR}/ice_evolu ${NEMO_VALID}/. 
    233 if [ -n "$(ls ${NEMO_VALID}/*solver*)" ] ; then 
    234    echo "moved solver.stat in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
    235    echo "moved solver.stat in ${NEMO_VALID} directory"   
    236 else 
    237    echo "problem in looking for solver.stat file in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
    238    echo "solver.stat IS NOT in ${NEMO_VALID} directory"  
    239 fi 
    240 if [ -n "$(ls ${NEMO_VALID}/*ocean.output*)" ] ; then 
    241    echo "moved ocean.output in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
    242    echo "moved ocean.output in ${NEMO_VALID} directory"  
    243 else 
    244    echo "problem in looking for ocean.output file in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
    245    echo "ocean.output IS NOT in ${NEMO_VALID} directory"  
    246 fi 
    247 if [ -n "`ls ${NEMO_VALID}/*restart*`" ] ; then 
    248    echo "moved restart files in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
    249    echo "moved restart files in ${NEMO_VALID} directory"  
    250 else 
    251    echo "problem in looking for restart files in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
    252    echo "restart files ARE NOT in ${NEMO_VALID} directory"  
    253 fi 
    254 if [ -n "$(ls ${NEMO_VALID}/ice_evolu)" ] ; then 
    255         echo "moved ice_evolu in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
    256         echo "moved ice_evolu in ${NEMO_VALID} directory" 
    257 else 
    258         echo "problem looking for ice_evolu file in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
    259         echo "ice_evolu IS NOT in ${NEMO_VALID} directory" 
    260 fi 
    261 ################################################################ 
     175 
     176    if [ ${MPI_INTERACT} == "yes" ] ; then 
     177   # 
     178   # example for brodie (NEC SX8) machine 
     179   #  mpirun -np ${NB_PROC} opa 
     180   # example for dedale machine 
     181   #  mpirun --mca btl self,tcp -np ${NB_PROC} opa 
     182   # example for vargas (IBM Power6) machine 
     183   mpiexec -n ${NB_PROC} opa 
     184   # 
     185   post_test_tidyup 
     186    fi 
     187# 
     188# example for NOCS Altix system using PBS batch submission (requires ${SETTE_DIR}/sette_batch_template file) 
     189# 
     190    if [ ${MPI_INTERACT} == "no" ] ; then 
     191      case ${COMPILER} in  
     192         ALTIX_NAUTILUS_MPT) 
     193               if [ ${NB_REM} == 0 ] ; then 
     194               # number of processes required is an integer multiple of 4 
     195               # 
     196               NB_NODES=$( echo $NB_PROC | awk '{print $1 / 4}') 
     197            else 
     198               # 
     199               # number of processes required is not an integer multiple of 4 
     200               # round up the number of nodes required. 
     201               # 
     202               NB_NODES=$( echo $NB_PROC | awk '{printf("%d",$1 / 4 + 1 )}') 
     203                  fi 
     204            ;; 
     205         *) 
     206            NB_NODES=${NB_PROC} 
     207            ;; 
     208 
     209      esac 
     210# 
     211# Pass settings into job file by using sed to edit predefined strings 
     212# 
     213        cat ${SETTE_DIR}/job_batch_template | sed -e"s/NODES/${NB_NODES}/" -e"s/NPROCS/${NB_PROC}/" \ 
     214             -e"s:DEF_SETTE_DIR:${SETTE_DIR}:" -e"s:DEF_INPUT_DIR:${INPUT_DIR}:" \ 
     215             -e"s:DEF_EXE_DIR:${EXE_DIR}:" \ 
     216             -e"s:DEF_CONFIG_DIR:${CONFIG_DIR}:" \ 
     217             -e"s:DEF_NEMO_VALIDATION:${NEMO_VALIDATION_DIR}:" -e"s:DEF_NEW_CONF:${NEW_CONF}:" \ 
     218             -e"s:DEF_CMP_NAM:${CMP_NAM}:" -e"s:DEF_TEST_NAME:${TEST_NAME}:" > run_sette_test.job 
     219# 
     220# submit job to batch system  
     221   ${BATCH_COMMAND} run_sette_test.job  
     222    fi 
     223 
     224fi 
  • branches/2011/dev_r2855_LOCEAN7_SETTE/NEMOGCM/SETTE/param.cfg

    r2675 r2890  
    1 #- execution directory  
    2 EXE_DIR=${CONFIG_DIR}      
    31#- forcing files storing  
    4 FORCING_DIR=~/FORCING 
     2FORCING_DIR=/workgpfs/rech/eee/reee605/FORCING 
    53#- input files storing  
    64INPUT_DIR=${CONFIG_DIR}/${NEW_CONF}/EXP00 
    75#- only for IBM 
    8 # TMPDIR=${CONFIG_DIR}/${NEW_CONF}/EXP00 
    9 #- output files storing  
    10 OUTPUT_DIR=${CONFIG_DIR}/${NEW_CONF}/EXP00/OUTPUT 
     6TMPDIR=${CONFIG_DIR}/${NEW_CONF}/EXP00 
    117#- VALIDATION files storing  
    128NEMO_VALIDATION_DIR=~/NEMO_VALIDATION 
  • branches/2011/dev_r2855_LOCEAN7_SETTE/NEMOGCM/SETTE/sette.sh

    r2756 r2890  
    3535# =========== 
    3636# 
    37 # principal script is sette.sh, that calls  
     37# Variables to be checked by user: 
     38# 
     39# COMPILER : name of compiler as defined in NEMOGCM/ARCH directory  
     40# 
     41# BATCH_COMMAND :  name of the command for batch submission 
     42# 
     43# MPI_INTERACT :   
     44# 
     45#         for MPP tests, "no" for batch execution, "yes" for interactive execution  
     46# 
     47#         NOTE: for run with 1 process tests are run always in MPI_INTERACT="yes" 
     48# 
     49# Principal script is sette.sh, that calls  
    3850# 
    3951#  makenemo  
    4052# 
    41 #   creates the exectuable in ${CONFIG_NAME}/BLD/bin/nemo.exe  
    42 # 
    43 #   (and its link opa in ${CONFIG_NAME}/EXP00) 
    44 # 
    45 #   param.cfg : sets and loads following directories 
    46 # 
    47 #   Executing directory (EXE_DIR) 
    48 # 
    49  
    50 # 
    51 #   Input files storing (INPUT_DIR) 
    52 # 
    53 #   Temporary directory (if needed) (TMPDIR) 
     53#   creates the exectuable in ${CONFIG_NAME}/BLD/bin/nemo.exe  (and its link opa in ${CONFIG_NAME}/EXP00) 
     54# 
     55#  param.cfg : sets and loads following directories: 
     56# 
     57#   FORCING_DIR : is the directory for forcing files (tarfile) 
     58# 
     59#   INPUT_DIR : is the directory for input files storing  
     60# 
     61#   TMPDIR : is the temporary directory (if needed) 
    5462#  
    55 #   Validation directory (NEMO_VALIDATION_DIR) 
    56 # 
    57 #   (note: this file is the same for all configrations to be tested with sette) 
     63#   NEMO_VALIDATION_DIR : is the validation directory 
     64# 
     65#   (NOTE: this file is the same for all configrations to be tested with sette) 
     66# 
    5867# 
    5968#  all_functions.sh : loads functions used by sette (note: new functions can be added here) 
    6069# 
    61 #  set_namelist : function declared in all_functions that set namelist parameters for tests 
     70#   set_namelist : function declared in all_functions that set namelist parameters for tests 
     71# 
     72#   post_test_tidyup : creates validation storage directory and copy needed output files (solver.stat and ocean.output) in it after execution of test. 
     73# 
     74#   Tree of VALIDATION is: 
     75# 
     76#   NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) 
     77# 
     78# 
     79#  prepare_exe_dir.sh : defines and creates directory where the test is executed 
     80# 
     81#       execution directory takes name of TEST_NAME defined in every test in sette.sh 
     82# 
     83#       ( each test in executed in its own directory ) 
     84# 
    6285# 
    6386#  fcm_job.sh  
    6487# 
    65 #   runs job and saves output files (grid_files, restarts, ice_evolu, ftrace.out) 
    66 # 
    67 #   and it creates tree of VALIDATION, in which there are restart files, solver.stat and ocean.output 
    68 # 
    69 #   Tree of VALIDATION is: 
    70 # 
    71 #   NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) 
     88#   runs job in interactive or batch mode : all jobs using 1 process are run interactive, and all MPP jobs are 
     89# 
     90#   run in batch (MPI_INTERACT="no") or interactive (MPI_INTERACT="yes") see sette.sh and BATCH_TEMPLATE directory 
     91# 
     92#   (note this job needs to have an input_CONFIG.cfg in which can be found input tar file) 
    7293#  
    73  (note this job needs to have an input_CONFIG.cfg in which can be found input tar file) 
    74 # 
    75  (note other files can be saved adding at the end of fcm_job list of saved files) 
     94NOTE: if job is not launched for some problems you have executable ready in ${EXE_DIR} directory 
     95# 
     96NOTE: the changed namelists are leaved in ${EXE_DIR} directory whereas original namelist remains in ${NEW_CONF}/EXP00 
    7697#  
    77 #  NOTE: if job is not launched for some problems you have executable ready in ${CONFIG_NAME}/EXP00 directory 
    78 # 
    79 #  NOTE: the changed namelists are leaved in ${CONFIG_NAME}/EXP00 directory 
    80 #  
    81 #  in ${SETTE_DIR} is created output.sette with the echo of commands run 
     98#  in ${SETTE_DIR} is created output.sette with the echo of executed commands 
    8299# 
    83100#  if sette.sh is stopped in output.sette there is written the last command executed by sette.sh 
     
    113130# Compiler among those in NEMOGCM/ARCH 
    114131COMPILER=PW6_VARGAS 
     132export BATCH_COMMAND=llsubmit 
     133export MPI_INTERACT="no" 
    115134 
    116135# Directory to run the tests 
     
    122141 
    123142CMP_NAM=${1:-$COMPILER} 
    124 ## NBTEST=8 
    125 ## echo "TOTAL NUMBER OF TEST" ${NBTEST} 
    126 ## for (( config=2; config<=${NBTEST}; config++ )) 
     143# Copy job_batch_COMPILER file for specific compiler into job_batch_template 
     144cd ${SETTE_DIR} 
     145cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    127146 
    128147for config in 1 2 3 4 5 6 7 8 
     
    131150if [ ${config} -eq 1 ] ;  then 
    132151    # Restartability tests for GYRE_LOBSTER 
     152    export TEST_NAME="LONG" 
    133153    cd ${SETTE_DIR} 
    134154    . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_LONG -r GYRE_LOBSTER del_key "key_diatrc" 
     
    136156    . param.cfg 
    137157    . all_functions.sh 
    138     copy_original namelist  
    139     copy_original namelist_top 
     158    . prepare_exe_dir.sh 
     159    cd ${EXE_DIR} 
    140160    set_namelist namelist cn_exp \"GYRELOB_LONG\" 
    141161    set_namelist namelist nn_it000 1 
     
    145165    set_namelist namelist_top ln_trcrad .false. 
    146166    cd ${SETTE_DIR} 
    147     . ./fcm_job.sh input_GYRE.cfg 1 LONG 
    148      
    149     cd ${SETTE_DIR} 
    150     copy_original namelist 
    151     copy_original namelist_top 
     167    . ./fcm_job.sh input_GYRE.cfg 1 ${TEST_NAME} 
     168 
     169    cd ${SETTE_DIR} 
     170    export TEST_NAME="SHORT" 
     171    . prepare_exe_dir.sh 
     172    cd ${EXE_DIR} 
    152173    set_namelist namelist cn_exp \"GYRELOB_SHORT\" 
    153174    set_namelist namelist nn_it000 61 
     
    157178    set_namelist namelist nn_rstctl 2 
    158179    set_namelist namelist ln_clobber .true. 
     180    cp ..\/LONG\/GYRELOB_LONG_00000060_restart.nc . 
    159181    set_namelist namelist cn_ocerst_in \"GYRELOB_LONG_00000060_restart.nc\" 
    160182    set_namelist namelist_top ln_trcrad .false. 
    161183    set_namelist namelist_top ln_rsttr .true. 
    162184    set_namelist namelist_top nn_rsttr 2 
     185    cp ..\/LONG\/GYRELOB_LONG_00000060_restart_trc.nc . 
    163186    set_namelist namelist_top cn_trcrst_in \"GYRELOB_LONG_00000060_restart_trc\" 
    164187    cd ${SETTE_DIR} 
    165     . ./fcm_job.sh input_GYRE.cfg 1 SHORT 
     188    . ./fcm_job.sh input_GYRE.cfg 1 ${TEST_NAME} 
    166189fi 
    167190 
    168191if [ ${config} -eq 2 ] ;  then 
    169192# Restartability tests for ORCA2_LIM_PISCES 
     193    export TEST_NAME="LONG" 
    170194    cd ${SETTE_DIR} 
    171195    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES del_key "key_dtatrc key_diatrc" 
    172196    cd ${SETTE_DIR} 
    173     copy_original namelist 
    174     copy_original namelist_top 
    175     copy_original namelist_pisces 
    176     . param.cfg 
    177     . all_functions.sh 
     197    . param.cfg 
     198    . all_functions.sh 
     199    . prepare_exe_dir.sh 
     200    cd ${EXE_DIR} 
    178201    set_namelist namelist cn_exp \"O2LP_LONG\" 
    179202    set_namelist namelist nn_it000 1 
     
    190213    set_namelist namelist_pisces ln_sedinput .false. 
    191214    cd ${SETTE_DIR} 
    192     . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 1 LONG 
     215    . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 1 ${TEST_NAME} 
    193216     
    194217    cd ${SETTE_DIR} 
    195     copy_original namelist 
    196     copy_original namelist_ice 
    197     copy_original namelist_top 
    198     copy_original namelist_pisces 
     218    export TEST_NAME="SHORT" 
     219    . prepare_exe_dir.sh 
     220    cd ${EXE_DIR} 
    199221    set_namelist namelist cn_exp \"O2LP_SHORT\" 
    200222    set_namelist namelist nn_it000 76 
     
    204226    set_namelist namelist nn_rstctl 2 
    205227    set_namelist namelist ln_clobber .true. 
    206     set_namelist namelist cn_ocerst_in \"O2LP_LONG_00000075_restart.nc\" 
    207     set_namelist namelist_ice cn_icerst_in \"O2LP_LONG_00000075_restart_ice.nc\" 
     228    cp ../LONG/O2LP_LONG_00000075_restart.nc . 
     229    set_namelist namelist cn_ocerst_in \"O2LP_LONG_00000075_restart\" 
     230    cp ../LONG/O2LP_LONG_00000075_restart_ice.nc . 
     231    set_namelist namelist_ice cn_icerst_in \"O2LP_LONG_00000075_restart_ice\" 
    208232    set_namelist namelist_top ln_trcrad .false. 
    209233    set_namelist namelist_top ln_rsttr .true. 
    210234    set_namelist namelist_top nn_rsttr 2 
     235    cp ../LONG/O2LP_LONG_00000075_restart_trc.nc . 
    211236    set_namelist namelist_top cn_trcrst_in \"O2LP_LONG_00000075_restart_trc\" 
    212237    # put ln_pisdmp, ln_dustfer, ln_river, ln_ndepo, ln_sedinput 
     
    218243    set_namelist namelist_pisces ln_sedinput .false. 
    219244    cd ${SETTE_DIR} 
    220     . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 1 SHORT 
     245    . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 1 ${TEST_NAME} 
    221246fi 
    222247 
    223248if [ ${config} -eq 3 ] ;  then 
    224249    ## Restartability tests for POMME 
     250    export TEST_NAME="LONG" 
    225251    cd ${SETTE_DIR} 
    226252    . ../CONFIG/makenemo -m ${CMP_NAM} -n POMME_LONG -r POMME 
     
    228254    . param.cfg 
    229255    . all_functions.sh 
    230     copy_original namelist 
     256    . prepare_exe_dir.sh 
     257    cd ${EXE_DIR} 
    231258    set_namelist namelist cn_exp \"POMME_LONG\" 
    232259    set_namelist namelist nn_it000 1 
     260    set_namelist namelist nn_stock 300 
    233261    set_namelist namelist nn_itend 600 
    234262    set_namelist namelist ln_clobber .true. 
    235263    cd ${SETTE_DIR} 
    236     . ./fcm_job.sh input_POMME.cfg 1 LONG 
     264    . ./fcm_job.sh input_POMME.cfg 1 ${TEST_NAME} 
    237265     
    238266    cd ${SETTE_DIR} 
    239     copy_original namelist 
     267    export TEST_NAME="SHORT" 
     268    . prepare_exe_dir.sh 
     269    cd ${EXE_DIR} 
    240270    set_namelist namelist cn_exp \"POMME_SHORT\" 
    241271    set_namelist namelist nn_it000 301 
    242272    set_namelist namelist nn_itend 600 
    243     set_namelist namelist nn_stock 300 
    244273    set_namelist namelist ln_rstart .true. 
    245274    set_namelist namelist nn_rstctl 2 
    246275    set_namelist namelist ln_clobber .true. 
    247     set_namelist namelist cn_ocerst_in \"POMME_LONG_00000075_restart.nc\" 
    248     mv ${OUTPUT_DIR}/restart.obc.output ${OUTPUT_DIR}/restart.obc 
    249     cd ${SETTE_DIR} 
    250     . ./fcm_job.sh input_POMME.cfg 1 SHORT 
     276    cp ../LONG/POMME_LONG_00000300_restart.nc . 
     277    set_namelist namelist cn_ocerst_in \"POMME_LONG_00000300_restart\" 
     278    cp ../LONG/restart.obc.output restart.obc 
     279    #mv restart.obc.output restart.obc 
     280    cd ${SETTE_DIR} 
     281    . ./fcm_job.sh input_POMME.cfg 1 ${TEST_NAME} 
    251282fi 
    252283 
    253284if [ ${config} -eq 4 ] ;  then 
    254     ## Reproducilibity tests for GYRE_LOBSTER 
     285    export TEST_NAME="REPRO_1_4" 
    255286    cd ${SETTE_DIR} 
    256287    . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_4 -r GYRE_LOBSTER add_key "key_mpp_mpi key_mpp_rep" del_key "key_vectopt_loop key_diatrc" 
     
    258289    . param.cfg 
    259290    . all_functions.sh 
    260     copy_original namelist 
     291    . prepare_exe_dir.sh 
     292    cd ${EXE_DIR} 
    261293    set_namelist namelist cn_exp \"GYRELOB_14\" 
    262294    set_namelist namelist nn_it000 1 
    263     set_namelist namelist nn_itend 75 
     295    set_namelist namelist nn_itend 60 
    264296    set_namelist namelist nn_fwb 0 
    265297    set_namelist namelist nn_bench 0 
     
    270302    set_namelist namelist jpnij 4 
    271303    cd ${SETTE_DIR} 
    272     . ./fcm_job.sh input_GYRE.cfg 4 REPRO_1_4 
     304    . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME} 
    273305     
    274306    cd ${SETTE_DIR} 
    275     copy_original namelist 
     307    export TEST_NAME="REPRO_2_2" 
     308    . prepare_exe_dir.sh 
     309    cd ${EXE_DIR} 
    276310    set_namelist namelist cn_exp \"GYRELOB_22\" 
    277311    set_namelist namelist nn_it000 1 
    278     set_namelist namelist nn_itend 75 
     312    set_namelist namelist nn_itend 60 
    279313    set_namelist namelist nn_fwb 0 
    280314    set_namelist namelist ln_ctl .false. 
     
    284318    set_namelist namelist jpnij 4 
    285319    cd ${SETTE_DIR} 
    286     . ./fcm_job.sh input_GYRE.cfg 4 REPRO_2_2 
     320    . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME} 
    287321fi 
    288322 
    289323if [ ${config} -eq 5 ] ;  then 
    290324    ## Repropducilibity tests for ORCA2_LIM_PISCES 
    291     cd ${SETTE_DIR} 
    292     . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES add_key "key_mpp_mpi key_mpp_rep" del_key "key_vectopt_loop key_dtatrc key_diatrc"  
    293     cd ${SETTE_DIR} 
    294     . param.cfg 
    295     . all_functions.sh 
    296     copy_original namelist 
    297     copy_original namelist_pisces 
     325    export TEST_NAME="REPRO_4_4" 
     326    cd ${SETTE_DIR} 
     327    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES add_key "key_mpp_mpi key_mpp_rep" del_key "key_v 
     328ectopt_loop key_dtatrc key_diatrc" 
     329    cd ${SETTE_DIR} 
     330    . param.cfg 
     331    . all_functions.sh 
     332    . prepare_exe_dir.sh 
     333    cd ${EXE_DIR} 
    298334    set_namelist namelist nn_it000 1 
    299335    set_namelist namelist nn_itend 75 
     
    303339    set_namelist namelist jpni 4 
    304340    set_namelist namelist jpnj 4 
    305     set_namelist namelist jpnij 16  
     341    set_namelist namelist jpnij 16 
    306342    # put ln_pisdmp, ln_dustfer, ln_river, ln_ndepo, ln_sedinput to false 
    307343    # if not you need input files, and for tests is not necessary 
     
    312348    set_namelist namelist_pisces ln_sedinput .false. 
    313349    cd ${SETTE_DIR} 
    314     . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 16 REPRO_4_4 
    315      
    316     cd ${SETTE_DIR} 
    317     copy_original namelist 
    318     copy_original namelist_pisces 
     350    . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 16 ${TEST_NAME} 
     351 
     352    cd ${SETTE_DIR} 
     353    export TEST_NAME="REPRO_2_8" 
     354    . prepare_exe_dir.sh 
     355    cd ${EXE_DIR} 
    319356    set_namelist namelist nn_it000 1 
    320357    set_namelist namelist nn_itend 75 
     
    333370    set_namelist namelist_pisces ln_sedinput .false. 
    334371    cd ${SETTE_DIR} 
    335     . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 16 REPRO_2_8 
     372    . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 16 ${TEST_NAME} 
    336373fi 
    337374 
    338375if [ ${config} -eq 6 ] ;  then 
    339376    ## Reproductibility tests for POMME 
     377    export TEST_NAME="REPRO_1_4" 
    340378    cd ${SETTE_DIR} 
    341379    . ../CONFIG/makenemo -m ${CMP_NAM} -n POMME_4 -r POMME add_key "key_mpp_mpi key_mpp_rep" 
     
    343381    . param.cfg 
    344382    . all_functions.sh 
    345     copy_original namelist 
     383    . prepare_exe_dir.sh 
     384    cd ${EXE_DIR} 
    346385    set_namelist namelist nn_it000 1 
    347386    set_namelist namelist nn_itend 300 
     
    353392    set_namelist namelist jpnij 4 
    354393    cd ${SETTE_DIR} 
    355     . ./fcm_job.sh input_POMME.cfg 4 REPRO_1_4 
    356      
    357     cd ${SETTE_DIR} 
    358     copy_original namelist 
     394    . ./fcm_job.sh input_POMME.cfg 4 ${TEST_NAME} 
     395 
     396    cd ${SETTE_DIR} 
     397    export TEST_NAME="REPRO_2_2" 
     398    . prepare_exe_dir.sh 
     399    cd ${EXE_DIR} 
    359400    set_namelist namelist nn_it000 1 
    360401    set_namelist namelist nn_itend 300 
     
    366407    set_namelist namelist jpnij 4 
    367408    cd ${SETTE_DIR} 
    368     . ./fcm_job.sh input_POMME.cfg 4 REPRO_2_2 
     409    . ./fcm_job.sh input_POMME.cfg 4 ${TEST_NAME} 
    369410fi 
    370411 
    371412if [ ${config} -eq 7 ] ;  then 
    372413    ## ORCA2_LIM with Agulhas AGRIF zoom 
    373     cd ${SETTE_DIR} 
    374     . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL -r ORCA2_LIM add_key "key_agrif" del_key "key_vectopt_loop key_zdftmx"  
    375     cd ${SETTE_DIR} 
    376     . param.cfg 
    377     . all_functions.sh 
    378     copy_original namelist 
    379     copy_original 1_namelist 
     414    export TEST_NAME="SHORT" 
     415    cd ${SETTE_DIR} 
     416    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL -r ORCA2_LIM add_key "key_agrif" del_key "key_vectopt_loop key_zdftmx" 
     417    cd ${SETTE_DIR} 
     418    . param.cfg 
     419    . all_functions.sh 
     420    . prepare_exe_dir.sh 
     421    cd ${EXE_DIR} 
    380422    set_namelist namelist nn_it000 1 
    381423    set_namelist namelist nn_itend 75 
     
    387429    set_namelist 1_namelist ln_clobber .true. 
    388430    cd ${SETTE_DIR} 
    389     . ./fcm_job.sh input_ORCA2_LIM.cfg 1 SHORT 
     431    . ./fcm_job.sh input_ORCA2_LIM_AGRIF.cfg 1 ${TEST_NAME} 
    390432fi 
    391433 
    392434if [ ${config} -eq 8 ] ;  then 
    393435    ## ORCA2_LIM with Agulhas AGRIF zoom in MPI 
    394     cd ${SETTE_DIR} 
    395     . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM add_key "key_mpp_mpi key_agrif" del_key "key_vectopt_loop key_zdftmx"  
    396     cd ${SETTE_DIR} 
    397     . param.cfg 
    398     . all_functions.sh 
    399     copy_original namelist 
    400     copy_original 1_namelist 
     436    export TEST_NAME="SHORT" 
     437    cd ${SETTE_DIR} 
     438    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM add_key "key_mpp_mpi key_agrif" del_key "key_vectopt_loop key_zdftmx" 
     439    cd ${SETTE_DIR} 
     440    . param.cfg 
     441    . all_functions.sh 
     442    . prepare_exe_dir.sh 
     443    cd ${EXE_DIR} 
    401444    set_namelist namelist nn_it000 1 
    402445    set_namelist namelist nn_itend 75 
     
    405448    set_namelist namelist jpni 1 
    406449    set_namelist namelist jpnj 2 
    407     set_namelist namelist jpnij 2  
     450    set_namelist namelist jpnij 2 
    408451    set_namelist 1_namelist nn_it000 1 
    409452    set_namelist 1_namelist nn_itend 150 
     
    411454    set_namelist 1_namelist ln_clobber .true. 
    412455    cd ${SETTE_DIR} 
    413     . ./fcm_job.sh input_ORCA2_LIM.cfg 2 SHORT 
     456    . ./fcm_job.sh input_ORCA2_LIM_AGRIF.cfg 2 ${TEST_NAME} 
    414457fi 
    415458 
  • branches/2011/dev_r2855_LOCEAN7_SETTE/NEMOGCM/SETTE/sette_beginner.sh

    r2754 r2890  
    3838# 
    3939# Compiler among those in NEMOGCM/ARCH 
    40 COMPILER=gfortran_linux 
     40COMPILER=PW6_VARGAS 
     41export BATCH_COMMAND=llsubmit 
     42export MPI_INTERACT="no" 
    4143 
    4244# Directory to run the tests 
     
    4850 
    4951CMP_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 
    5055 
    5156# Run for GYRE CONFIG 
    5257# small test to start 
    5358# compile GYRE configuration with gfortran_osx compiler run with 1 proc, by default in cpp_GYRE.fcm file :  
     59export TEST_NAME="TEST01" 
    5460cd ${SETTE_DIR} 
    5561. ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_SHORT -r GYRE 
     
    5763. param.cfg  
    5864. all_functions.sh 
     65# creation of execution directory 
     66. prepare_exe_dir.sh 
     67cd ${EXE_DIR} 
    5968# setting namelist parameters 
    6069# experience name 
     
    6877cd ${SETTE_DIR} 
    6978# run job, with 1 processor, test named SHORT (= 60 time steps) 
    70 . ./fcm_job.sh input_GYRE.cfg 1 SHORT 
     79. ./fcm_job.sh input_GYRE.cfg 1 ${TEST_NAME} 
Note: See TracChangeset for help on using the changeset viewer.