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 4899 for branches/2014/dev_r4743_NOC2_ZTS/NEMOGCM/SETTE – NEMO

Ignore:
Timestamp:
2014-11-27T16:21:44+01:00 (9 years ago)
Author:
acc
Message:

Branch 2014/dev_r4743_NOC2_ZTS. Merged in trunk changes from r4743 to r4879 in preparation for the annual merge. See ticket #1367 and https://forge.ipsl.jussieu.fr/nemo/wiki/ticket/1367_NOC2_ZTS

Location:
branches/2014/dev_r4743_NOC2_ZTS/NEMOGCM/SETTE
Files:
6 edited
3 copied

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4743_NOC2_ZTS/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-x3750_ADA

    r4255 r4899  
    6565# 
    6666  if [ MPI_FLAG == "yes" ]; then 
    67      echo "Running time ${MPIRUN} ./opa" 
    68      time ${MPIRUN} ./opa 
     67     echo "Running time ${MPIRUN} ./opa -procs $OCEANCORES" 
     68     time ${MPIRUN} ./opa -procs $OCEANCORES 
    6969  else 
    7070     echo "Running time ./opa" 
  • branches/2014/dev_r4743_NOC2_ZTS/NEMOGCM/SETTE/iodef_sette.xml

    r4242 r4899  
    22<simulation>  
    33 
    4  <context id="nemo" time_origin="1900-01-01 00:00:00" > 
     4 <context id="nemo" time_origin="1950-01-01 00:00:00" > 
    55     
    66    <!-- $id$ --> 
     
    2121    --> 
    2222     
    23     <file_definition type="multiple_file" name="@expname@_@freq@_@startdate@_@enddate@" sync_freq="1d" min_digits="4"> 
     23    <file_definition type="multiple_file" name="@expname@_@freq@_@startdate@_@enddate@" sync_freq="10d" min_digits="4"> 
    2424     
    25       <file_group id="1h" output_freq="1h"  output_level="10" enabled=".FALSE."/> <!-- 1h files --> 
    26       <file_group id="2h" output_freq="2h"  output_level="10" enabled=".FALSE."/> <!-- 2h files --> 
    27       <file_group id="3h" output_freq="3h"  output_level="10" enabled=".FALSE."/> <!-- 3h files -->      
    28       <file_group id="4h" output_freq="4h"  output_level="10" enabled=".FALSE."/> <!-- 4h files --> 
    29       <file_group id="6h" output_freq="6h"  output_level="10" enabled=".FALSE."/> <!-- 6h files --> 
    30       
    31       <file_group id="1d" output_freq="1d"  output_level="10" enabled=".FALSE."/> <!-- 1d files --> 
     25      <file_group id="1ts" output_freq="1ts"  output_level="10" enabled=".TRUE."/> <!-- 1 time step files --> 
     26      <file_group id="1h" output_freq="1h"  output_level="10" enabled=".TRUE."/> <!-- 1h files --> 
     27      <file_group id="2h" output_freq="2h"  output_level="10" enabled=".TRUE."/> <!-- 2h files --> 
     28      <file_group id="3h" output_freq="3h"  output_level="10" enabled=".TRUE."/> <!-- 3h files -->      
     29      <file_group id="4h" output_freq="4h"  output_level="10" enabled=".TRUE."/> <!-- 4h files --> 
     30      <file_group id="6h" output_freq="6h"  output_level="10" enabled=".TRUE."/> <!-- 6h files -->      
     31      <file_group id="1d" output_freq="1d"  output_level="10" enabled=".TRUE."/> <!-- 1d files --> 
     32      <file_group id="3d" output_freq="3d"  output_level="10" enabled=".TRUE."/> <!-- 3d files -->     
     33      <file_group id="5d" output_freq="5d"  output_level="10" enabled=".TRUE."/>  <!-- 5d files -->   
     34      <file_group id="1m" output_freq="1mo" output_level="10" enabled=".TRUE."/> <!-- real monthly files --> 
     35      <file_group id="2m" output_freq="2mo" output_level="10" enabled=".TRUE."/> <!-- real 2m files --> 
     36      <file_group id="3m" output_freq="3mo" output_level="10" enabled=".TRUE."/> <!-- real 3m files --> 
     37      <file_group id="4m" output_freq="4mo" output_level="10" enabled=".TRUE."/> <!-- real 4m files --> 
     38      <file_group id="6m" output_freq="6mo" output_level="10" enabled=".TRUE."/> <!-- real 6m files --> 
    3239 
    33       <file_group id="3d" output_freq="3d"  output_level="10" enabled=".FALSE."/> <!-- 3d files --> 
    34       <file_group id="5d" output_freq="5d"  output_level="10" enabled=".FALSE."/> <!-- 5d files --> 
    35  
    36       <file_group id="1m" output_freq="1mo" output_level="10" enabled=".FALSE."/> <!-- real monthly files --> 
    37       <file_group id="2m" output_freq="2mo" output_level="10" enabled=".FALSE."/> <!-- real 2m files --> 
    38       <file_group id="3m" output_freq="3mo" output_level="10" enabled=".FALSE."/> <!-- real 3m files --> 
    39       <file_group id="4m" output_freq="4mo" output_level="10" enabled=".FALSE."/> <!-- real 4m files --> 
    40       <file_group id="6m" output_freq="6mo" output_level="10" enabled=".FALSE."/> <!-- real 6m files --> 
    41  
    42       <file_group id="1y"  output_freq="1y" output_level="10" enabled=".FALSE."/> <!-- real yearly files --> 
    43       <file_group id="2y"  output_freq="2y" output_level="10" enabled=".FALSE."/> <!-- real 2y files --> 
    44       <file_group id="5y"  output_freq="5y" output_level="10" enabled=".FALSE."/> <!-- real 5y files --> 
    45       <file_group id="10y" output_freq="10y" output_level="10" enabled=".FALSE."/> <!-- real 10y files --> 
     40      <file_group id="1y"  output_freq="1y" output_level="10" enabled=".TRUE."/> <!-- real yearly files --> 
     41      <file_group id="2y"  output_freq="2y" output_level="10" enabled=".TRUE."/> <!-- real 2y files --> 
     42      <file_group id="5y"  output_freq="5y" output_level="10" enabled=".TRUE."/> <!-- real 5y files --> 
     43      <file_group id="10y" output_freq="10y" output_level="10" enabled=".TRUE."/> <!-- real 10y files --> 
    4644 
    4745   </file_definition> 
     
    6462   <domain_definition src="./domain_def.xml"/> 
    6563    
    66    <grid_definition />     
    67    
     64   <grid_definition>     
     65     <grid id="grid_T_2D" domain_ref="grid_T"/> 
     66     <grid id="grid_T_3D" domain_ref="grid_T" axis_ref="deptht"/> 
     67     <grid id="grid_U_2D" domain_ref="grid_U"/> 
     68     <grid id="grid_U_3D" domain_ref="grid_U" axis_ref="depthu"/> 
     69     <grid id="grid_V_2D" domain_ref="grid_V"/> 
     70     <grid id="grid_V_3D" domain_ref="grid_V" axis_ref="depthv"/> 
     71     <grid id="grid_W_2D" domain_ref="grid_W"/> 
     72     <grid id="grid_W_3D" domain_ref="grid_W" axis_ref="depthw"/> 
     73    </grid_definition>    
    6874  </context> 
    6975   
     
    8692============================================================================================================ 
    8793    --> 
    88   
     94     
    8995    <file_definition type="multiple_file" name="@expname@_@freq@_@startdate@_@enddate@" sync_freq="10d" min_digits="4"> 
    9096     
    91       <file_group id="1h" output_freq="1h"  output_level="10" enabled=".FALSE."/> <!-- 1h files --> 
    92       <file_group id="2h" output_freq="2h"  output_level="10" enabled=".FALSE."/> <!-- 2h files --> 
    93       <file_group id="3h" output_freq="3h"  output_level="10" enabled=".FALSE."/> <!-- 3h files -->      
    94       <file_group id="4h" output_freq="4h"  output_level="10" enabled=".FALSE."/> <!-- 4h files --> 
    95       <file_group id="6h" output_freq="6h"  output_level="10" enabled=".FALSE."/> <!-- 6h files --> 
    96       
    97       <file_group id="1d" output_freq="1d"  output_level="10" enabled=".FALSE."/> <!-- 1d files --> 
     97      <file_group id="1ts" output_freq="1ts"  output_level="10" enabled=".TRUE."/> <!-- 1 time step files --> 
     98      <file_group id="1h" output_freq="1h"  output_level="10" enabled=".TRUE."/> <!-- 1h files --> 
     99      <file_group id="2h" output_freq="2h"  output_level="10" enabled=".TRUE."/> <!-- 2h files --> 
     100      <file_group id="3h" output_freq="3h"  output_level="10" enabled=".TRUE."/> <!-- 3h files -->      
     101      <file_group id="4h" output_freq="4h"  output_level="10" enabled=".TRUE."/> <!-- 4h files --> 
     102      <file_group id="6h" output_freq="6h"  output_level="10" enabled=".TRUE."/> <!-- 6h files -->      
     103      <file_group id="1d" output_freq="1d"  output_level="10" enabled=".TRUE."/> <!-- 1d files --> 
     104      <file_group id="3d" output_freq="3d"  output_level="10" enabled=".TRUE."/> <!-- 3d files -->     
     105      <file_group id="5d" output_freq="5d"  output_level="10" enabled=".TRUE."/>  <!-- 5d files -->   
     106      <file_group id="1m" output_freq="1mo" output_level="10" enabled=".TRUE."/> <!-- real monthly files --> 
     107      <file_group id="2m" output_freq="2mo" output_level="10" enabled=".TRUE."/> <!-- real 2m files --> 
     108      <file_group id="3m" output_freq="3mo" output_level="10" enabled=".TRUE."/> <!-- real 3m files --> 
     109      <file_group id="4m" output_freq="4mo" output_level="10" enabled=".TRUE."/> <!-- real 4m files --> 
     110      <file_group id="6m" output_freq="6mo" output_level="10" enabled=".TRUE."/> <!-- real 6m files --> 
    98111 
    99       <file_group id="3d" output_freq="3d"  output_level="10" enabled=".FALSE."/> <!-- 3d files --> 
    100       <file_group id="5d" output_freq="5d"  output_level="10" enabled=".FALSE."/> <!-- 5d files --> 
     112      <file_group id="1y"  output_freq="1y" output_level="10" enabled=".TRUE."/> <!-- real yearly files --> 
     113      <file_group id="2y"  output_freq="2y" output_level="10" enabled=".TRUE."/> <!-- real 2y files --> 
     114      <file_group id="5y"  output_freq="5y" output_level="10" enabled=".TRUE."/> <!-- real 5y files --> 
     115      <file_group id="10y" output_freq="10y" output_level="10" enabled=".TRUE."/> <!-- real 10y files --> 
    101116 
    102       <file_group id="1m" output_freq="1mo" output_level="10" enabled=".FALSE."/> <!-- real monthly files --> 
    103       <file_group id="2m" output_freq="2mo" output_level="10" enabled=".FALSE."/> <!-- real 2m files --> 
    104       <file_group id="3m" output_freq="3mo" output_level="10" enabled=".FALSE."/> <!-- real 3m files --> 
    105       <file_group id="4m" output_freq="4mo" output_level="10" enabled=".FALSE."/> <!-- real 4m files --> 
    106       <file_group id="6m" output_freq="6mo" output_level="10" enabled=".FALSE."/> <!-- real 6m files --> 
    107  
    108       <file_group id="1y"  output_freq="1y" output_level="10" enabled=".FALSE."/> <!-- real yearly files --> 
    109       <file_group id="2y"  output_freq="2y" output_level="10" enabled=".FALSE."/> <!-- real 2y files --> 
    110       <file_group id="5y"  output_freq="5y" output_level="10" enabled=".FALSE."/> <!-- real 5y files --> 
    111       <file_group id="10y" output_freq="10y" output_level="10" enabled=".FALSE."/> <!-- real 10y files --> 
    112       <file_group id="1h" output_freq="1h"  output_level="10" enabled=".FALSE."/> <!-- 1h files --> 
    113       <file_group id="2h" output_freq="2h"  output_level="10" enabled=".FALSE."/> <!-- 2h files --> 
    114       <file_group id="3h" output_freq="3h"  output_level="10" enabled=".FALSE."/> <!-- 3h files -->      
    115       <file_group id="4h" output_freq="4h"  output_level="10" enabled=".FALSE."/> <!-- 4h files --> 
    116       <file_group id="6h" output_freq="6h"  output_level="10" enabled=".FALSE."/> <!-- 6h files --> 
    117       
    118117   </file_definition> 
    119118     
     
    130129      <axis id="depthw" long_name="Vertical W levels" unit="m" positive="down" /> 
    131130      <axis id="nfloat" long_name="Float number"      unit="-"  /> 
     131      <axis id="icbcla" long_name="Iceberg class"     unit="-"  /> 
    132132   </axis_definition>  
    133133     
     
    146146  </context> 
    147147 
    148  
    149148  <context id="xios"> 
    150149 
     
    154153        We must have buffer_size > jpi*jpj*jpk*8 (with jpi and jpj the subdomain size) 
    155154--> 
    156      <variable id="buffer_size"               type="integer">10000000</variable> 
     155     <variable id="buffer_size"               type="integer">10155778</variable> 
    157156     <variable id="buffer_server_factor_size" type="integer">2</variable> 
    158157     <variable id="info_level"                type="integer">0</variable> 
     
    164163                
    165164  </context> 
    166    
    167165</simulation> 
  • branches/2014/dev_r4743_NOC2_ZTS/NEMOGCM/SETTE/prepare_exe_dir.sh

    r4373 r4899  
    7171 
    7272cp -r ${CONFIG_DIR}/${NEW_CONF}/EXP00/* ${EXE_DIR}/. 
    73 #cp -r ${SETTE_DIR}/iodef_sette.xml ${EXE_DIR}/iodef.xml 
     73cp -r ${SETTE_DIR}/iodef_sette.xml ${EXE_DIR}/iodef.xml 
    7474cd ${EXE_DIR} 
  • branches/2014/dev_r4743_NOC2_ZTS/NEMOGCM/SETTE/prepare_job.sh

    r4687 r4899  
    200200                  fi 
    201201            ;; 
     202                        XC_ARCHER_INTEL) 
     203                                # ocean cores are packed 24 to a node 
     204                                NB_REM=$( echo $NB_PROC | awk '{print ( $1 % 24 ) }') 
     205                                if [ ${NB_REM} == 0 ] ; then 
     206                                        # number of processes required is an integer multiple of 24 
     207                                        # 
     208                                        NB_NODES=$( echo $NB_PROC $NXIO_PROC | awk '{print ($1) / 24}') 
     209                                else 
     210                                        # 
     211                                        # number of processes required is not an integer multiple of 24 
     212                                        # round up the number of nodes required. 
     213                                        # 
     214                                        NB_NODES=$( echo $NB_PROC | awk '{printf("%d",($1) / 24 + 1 )}') 
     215                                fi 
     216                                # xios cores are sparsely packed at 4 to a node 
     217                                # but can not share nodes with the ocean cores 
     218                                NB_REM=$( echo $NXIO_PROC | awk '{print ( $2 % 4 ) }') 
     219                                if [ ${NB_REM} == 0 ] ; then 
     220                                        # number of processes required is an integer multiple of 4                            
     221                                        # 
     222                                        NB_NODES=$( echo $NB_NODES $NXIO_PROC | awk '{print ($1 + ( $2 / 4 ))}')                     
     223                                else 
     224                                        # 
     225                                        # number of processes required is not an integer multiple of 4                              
     226                                        # round up the number of nodes required. 
     227                                        # 
     228                                        NB_NODES=$( echo $NB_NODES $NXIO_PROC | awk '{print ($1 + ( $2 / 4 ) + 1)}')                     
     229                                fi 
     230                                ;; 
    202231                        ifort_MERCATOR_CLUSTER) 
    203232                                echo NB_PROCS ${NB_PROC} 
  • branches/2014/dev_r4743_NOC2_ZTS/NEMOGCM/SETTE/sette.sh

    r4379 r4899  
    136136# ORCA2_LIM_PISCES: 3 &  4 
    137137# ORCA2_OFF_PISCES: 5 &  6 
    138 # AMM12           : 7 &  8 
    139 # SAS             : 9 & 10 
    140 # ORCA2_AGRIF_LIM: 11 
    141 for config in 1 2 3 4 5 6 7 8 9 10 11 
     138# ORCA2_LIM3      : 7 &  8 
     139# AMM12           : 9 & 10  
     140# SAS             :11 & 12 
     141# ORCA2_AGRIF_LIM :13 
     142for config in 1 2 3 4 5 6 7 8 9 10 11 12 13 
    142143 
    143144do 
     
    629630fi 
    630631 
     632 
     633# TESTS FOR ORCA2_LIM3 CONFIGURATION 
     634if [ ${config} -eq 7 ] ;  then 
     635    ## Restartability tests for ORCA2_LIM3 
     636    export TEST_NAME="LONG" 
     637    cd ${CONFIG_DIR} 
     638    . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3_LONG -r ORCA2_LIM3 -j 8 del_key ${DEL_KEYS} 
     639    cd ${SETTE_DIR} 
     640    . ./param.cfg 
     641    . ./all_functions.sh 
     642    . ./prepare_exe_dir.sh 
     643    JOB_FILE=${EXE_DIR}/run_job.sh 
     644    NPROC=4 
     645    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     646    cd ${EXE_DIR} 
     647    set_namelist namelist_cfg cn_exp \"O2L3_LONG\" 
     648    set_namelist namelist_cfg nn_it000 1 
     649    set_namelist namelist_cfg nn_itend 150 
     650    set_namelist namelist_cfg nn_stock 75 
     651    set_namelist namelist_cfg ln_clobber .true. 
     652    set_namelist namelist_cfg nn_fwb 0 
     653    set_namelist namelist_cfg jpni 2 
     654    set_namelist namelist_cfg jpnj 2 
     655    set_namelist namelist_cfg jpnij 4 
     656    set_namelist namelist_cfg nn_solv 2 
     657    if [ ${USING_MPMD} == "yes" ] ; then 
     658       set_xio_using_server iodef.xml true 
     659    else 
     660       set_xio_using_server iodef.xml false 
     661    fi 
     662    cd ${SETTE_DIR} 
     663    . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
     664     
     665    cd ${SETTE_DIR} 
     666    export TEST_NAME="SHORT" 
     667    . ./prepare_exe_dir.sh 
     668    cd ${EXE_DIR} 
     669    set_namelist namelist_cfg cn_exp \"O2L3_SHORT\" 
     670    set_namelist namelist_cfg nn_it000 76 
     671    set_namelist namelist_cfg nn_itend 150 
     672    set_namelist namelist_cfg nn_stock 75 
     673    set_namelist namelist_cfg ln_rstart .true. 
     674    set_namelist namelist_cfg nn_rstctl 2 
     675    set_namelist namelist_cfg ln_clobber .true. 
     676    set_namelist namelist_cfg nn_fwb 0 
     677    set_namelist namelist_cfg jpni 2 
     678    set_namelist namelist_cfg jpnj 2 
     679    set_namelist namelist_cfg jpnij 4 
     680    set_namelist namelist_cfg nn_solv 2 
     681    set_namelist namelist_cfg cn_ocerst_in \"O2L3_LONG_00000075_restart\" 
     682    set_namelist namelist_ice_cfg cn_icerst_in \"O2L3_LONG_00000075_restart_ice\" 
     683    for (( i=1; i<=$NPROC; i++)) ; do 
     684        L_NPROC=$(( $i - 1 )) 
     685        L_NPROC=`printf "%04d\n" ${L_NPROC}` 
     686        ln -sf ../LONG/O2L3_LONG_00000075_restart_${L_NPROC}.nc . 
     687        ln -sf ../LONG/O2L3_LONG_00000075_restart_ice_${L_NPROC}.nc . 
     688    done 
     689    if [ ${USING_MPMD} == "yes" ] ; then 
     690       set_xio_using_server iodef.xml true 
     691    else 
     692       set_xio_using_server iodef.xml false 
     693    fi 
     694    cd ${SETTE_DIR} 
     695    . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
     696    cd ${SETTE_DIR} 
     697    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     698fi 
     699 
     700if [ ${config} -eq 8 ] ;  then 
     701    ## Reproducibility tests for ORCA2_LIM3 
     702    export TEST_NAME="REPRO_4_4" 
     703    cd ${CONFIG_DIR} 
     704    . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3_16 -r ORCA2_LIM3 -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} 
     705    cd ${SETTE_DIR} 
     706    . ./param.cfg 
     707    . ./all_functions.sh 
     708    . ./prepare_exe_dir.sh 
     709    JOB_FILE=${EXE_DIR}/run_job.sh 
     710    NPROC=16 
     711    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     712    cd ${EXE_DIR} 
     713    set_namelist namelist_cfg nn_it000 1 
     714    set_namelist namelist_cfg nn_itend 75 
     715    set_namelist namelist_cfg nn_fwb 0 
     716    set_namelist namelist_cfg ln_ctl .false. 
     717    set_namelist namelist_cfg ln_clobber .true. 
     718    set_namelist namelist_cfg jpni 4 
     719    set_namelist namelist_cfg jpnj 4 
     720    set_namelist namelist_cfg jpnij 16 
     721    set_namelist namelist_cfg nn_solv 2 
     722    if [ ${USING_MPMD} == "yes" ] ; then 
     723       set_xio_using_server iodef.xml true 
     724    else 
     725       set_xio_using_server iodef.xml false 
     726    fi 
     727    cd ${SETTE_DIR} 
     728    . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
     729    cd ${SETTE_DIR} 
     730    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     731 
     732    cd ${SETTE_DIR} 
     733    export TEST_NAME="REPRO_2_8" 
     734    . ./prepare_exe_dir.sh 
     735    JOB_FILE=${EXE_DIR}/run_job.sh 
     736    NPROC=16 
     737    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     738    cd ${EXE_DIR} 
     739    set_namelist namelist_cfg nn_it000 1 
     740    set_namelist namelist_cfg nn_itend 75 
     741    set_namelist namelist_cfg ln_clobber .true. 
     742    set_namelist namelist_cfg nn_fwb 0 
     743    set_namelist namelist_cfg jpni 2 
     744    set_namelist namelist_cfg jpnj 8 
     745    set_namelist namelist_cfg jpnij 16 
     746    set_namelist namelist_cfg nn_solv 2 
     747    if [ ${USING_MPMD} == "yes" ] ; then 
     748       set_xio_using_server iodef.xml true 
     749    else 
     750       set_xio_using_server iodef.xml false 
     751    fi 
     752 
     753    cd ${SETTE_DIR} 
     754    . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
     755    cd ${SETTE_DIR} 
     756    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     757fi 
     758 
     759 
    631760# TESTS FOR AMM12 CONFIGURATION 
    632 if [ ${config} -eq 7 ] ;  then 
     761if [ ${config} -eq 9 ] ;  then 
    633762    ## Restartability tests for AMM12 
    634763    export TEST_NAME="LONG" 
     
    692821fi 
    693822 
    694 if [ ${config} -eq 8 ] ;  then 
     823if [ ${config} -eq 10 ] ;  then 
    695824## Reproducibility tests for AMM12 
    696825    export TEST_NAME="REPRO_8_4" 
     
    748877 
    749878# TESTS FOR ORCA2_SAS_LIM CONFIGURATION 
    750 if [ ${config} -eq 9 ] ;  then 
     879if [ ${config} -eq 11 ] ;  then 
    751880    ## Restartability tests for SAS 
    752881    export TEST_NAME="LONG" 
     
    810939fi 
    811940 
    812 if [ ${config} -eq 10 ] ;  then 
     941if [ ${config} -eq 12 ] ;  then 
    813942## Reproducibility tests for ORCA2_SAS_LIM 
    814943    export TEST_NAME="REPRO_8_4" 
     
    866995 
    867996# TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests) 
    868 if [ ${config} -eq 11 ] ;  then 
     997if [ ${config} -eq 13 ] ;  then 
    869998    ## ORCA2_LIM with Agulhas AGRIF zoom in MPI 
    870999    export TEST_NAME="SHORT" 
  • branches/2014/dev_r4743_NOC2_ZTS/NEMOGCM/SETTE/sette_beginner.sh

    r4147 r4899  
    44# Contact : sflod@locean-ipsl.upmc.fr 
    55# 
    6 # sette.sh   : principal script of SET TEsts for NEMO (SETTE) 
     6# sette_beginner.sh   : example of script of SET TEsts for NEMO (SETTE) 
    77# ---------------------------------------------------------------------- 
    88# NEMO/SETTE , NEMO Consortium (2010) 
     
    2121# =================== 
    2222# 
    23 # ---------------------------------------------- 
    24 # Set of tests for NEMO for beginners 
    25 # ---------------------------------------------- 
     23# COMPILER          : name of compiler as defined in NEMOGCM/ARCH directory  
     24# BATCH_COMMAND_PAR :  name of the command for submitting parallel batch jobs 
     25# BATCH_COMMAND_SEQ :  name of the command for submitting sequential batch jobs   
     26# INTERACT_FLAG     : flag to run in interactive mode "yes" 
     27#                           to run in batch mode "no" 
     28# MPIRUN_FLAG       : flag to run in parallel (MPI) "yes" 
     29#                           to run in sequential mode (NB_PROC = 1) "no" 
     30# USING_XIOS        : flag to control the activation of key_iomput 
     31#                      "yes" to compile using key_iomput and link to the external XIOS library 
     32#                      "no"  to compile without key_iomput and link to the old IOIPSL library 
     33# USING_MPMD        : flag to control the use of stand-alone IO servers 
     34#                     requires USING_XIOS="yes" 
     35#                      "yes" to run in MPMD (detached) mode with stand-alone IO servers 
     36#                      "no"  to run in SPMD (attached) mode without separate IO servers  
     37# NUM_XIOSERVERS    : number of stand-alone IO servers to employ 
     38#                     set to zero if USING_MPMD="no" 
    2639# 
    27 # SYNOPSIS 
    28 # ======== 
     40# Principal script is sette.sh, that calls  
    2941# 
    30 # :: 
     42#  makenemo  : to create successive exectuables in ${CONFIG_NAME}/BLD/bin/nemo.exe  
     43#              and links to opa in ${CONFIG_NAME}/EXP00) 
    3144# 
    32 $ ./sette_beginner.sh 
     45param.cfg : sets and loads following directories: 
    3346# 
    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 #- 
     47#   FORCING_DIR         : is the directory for forcing files (tarfile) 
     48#   INPUT_DIR           : is the directory for input files storing  
     49#   TMPDIR              : is the temporary directory (if needed) 
     50#   NEMO_VALIDATION_DIR : is the validation directory 
     51# 
     52#   (NOTE: this file is the same for all configrations to be tested with sette) 
     53# 
     54#   all_functions.sh : loads functions used by sette (note: new functions can be added here) 
     55#   set_namelist     : function declared in all_functions that sets namelist parameters  
     56#   post_test_tidyup : creates validation storage directory and copies required output files  
     57#                      (solver.stat and ocean.output) in it after execution of test. 
     58# 
     59#  VALIDATION tree is: 
     60# 
     61#   NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) 
     62# 
     63#  prepare_exe_dir.sh : defines and creates directory where the test is executed 
     64#                       execution directory takes name of TEST_NAME defined for every test  
     65#                       in sette.sh. (each test in executed in its own directory) 
     66# 
     67#  prepare_job.sh     : to generate the script run_job.sh 
     68# 
     69#  fcm_job.sh         : run in batch (INTERACT_FLAG="no") or interactive (INTERACT_FLAG="yes") 
     70#                        see sette.sh and BATCH_TEMPLATE directory 
     71# 
     72#  NOTE: jobs requiring initial or forcing data need to have an input_CONFIG.cfg in which  
     73#        can be found paths to the input tar file) 
     74#  NOTE: if job is not launched for any reason you have the executable ready in ${EXE_DIR}  
     75#        directory 
     76#  NOTE: the changed namelists are left in ${EXE_DIR} directory whereas original namelists  
     77#        remain in ${NEW_CONF}/EXP00 
     78#  
     79#  NOTE: a log file, output.sette, is created in ${SETTE_DIR} with the echoes of  
     80#        executed commands 
     81# 
     82#  NOTE: if sette.sh is stopped in output.sette there is written the last command  
     83#        executed by sette.sh 
     84# 
     85# example use: ./sette_beginner.sh  
     86######################################################################################### 
    3887# 
    3988# Compiler among those in NEMOGCM/ARCH 
    40 COMPILER=macport_osx 
     89COMPILER=x3750_ADA 
    4190export BATCH_COMMAND_PAR="llsubmit" 
    4291export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR 
    4392export INTERACT_FLAG="yes" 
    4493export MPIRUN_FLAG="yes" 
     94 
     95export DEL_KEYS="key_iomput" 
     96if [ ${USING_XIOS} == "yes" ] 
     97 then  
     98   export DEL_KEYS="" 
     99fi 
     100 
     101# 
     102# Settings which control the use of stand alone servers (only relevant if using xios) 
     103# 
     104export USING_MPMD="no" 
     105export NUM_XIOSERVERS=4 
     106export JOB_PREFIX=batch-mpmd 
     107# 
     108if [ ${USING_MPMD} == "no" ]  
     109 then 
     110   export NUM_XIOSERVERS=0 
     111   export JOB_PREFIX=batch 
     112fi 
     113# 
     114# 
     115if [ ${USING_MPMD} == "yes" ] && [ ${USING_XIOS} == "no"] 
     116 then 
     117   echo "Incompatible choices. MPMD mode requires the XIOS server" 
     118   exit 
     119fi 
     120# 
    45121 
    46122# Directory to run the tests 
     
    54130# Copy job_batch_COMPILER file for specific compiler into job_batch_template 
    55131cd ${SETTE_DIR} 
    56 ##if [ ${INTERACT_FLAG} == no ] ;  then 
    57     cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    58 ##fi  
     132cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    59133 
    60134# Run for GYRE CONFIG 
     
    63137export TEST_NAME="SHORT_TEST" 
    64138cd ${CONFIG_DIR} 
    65 . ./makenemo -m ${CMP_NAM} -n GYRE_SHORT -r GYRE -j 10 add_key "key_mpp_mpi key_nosignedzero" 
     139. ./makenemo -m ${CMP_NAM} -n GYRE_SHORT -r GYRE -j 10 add_key "key_nosignedzero" del_key ${DEL_KEYS} 
    66140cd ${SETTE_DIR} 
    67 . param.cfg  
    68 . all_functions.sh 
     141. ./param.cfg  
     142. ./all_functions.sh 
     143. ./prepare_exe_dir.sh 
    69144# creation of execution directory 
    70 . prepare_exe_dir.sh 
    71145JOB_FILE=${EXE_DIR}/run_job.sh 
     146# setting number of procs used 
    72147NPROC=4 
    73 \rm $JOB_FILE 
     148if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
    74149cd ${EXE_DIR} 
    75150# setting namelist parameters 
     
    82157# frequency of creation of a restart file 
    83158set_namelist namelist_cfg nn_stock 60 
    84  
     159if [ ${USING_MPMD} == "yes" ] ; then 
     160      set_xio_using_server iodef.xml true 
     161   else 
     162      set_xio_using_server iodef.xml false 
     163fi 
    85164cd ${SETTE_DIR} 
    86 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     165. ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    87166# run job, with 4 processors, test named SHORT (= 60 time steps) 
    88167cd ${SETTE_DIR}    
Note: See TracChangeset for help on using the changeset viewer.