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

Ignore:
Timestamp:
2014-11-28T18:24:01+01:00 (9 years ago)
Author:
mathiot
Message:

UKM02_ice_shelves merged and SETTE tested with revision 4879 of trunk

Location:
branches/2014/dev_r4650_UKMO2_ice_shelves/NEMOGCM/SETTE
Files:
1 added
9 edited
4 copied

Legend:

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

    r4255 r4924  
    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_r4650_UKMO2_ice_shelves/NEMOGCM/SETTE/iodef_sette.xml

    r4242 r4924  
    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_r4650_UKMO2_ice_shelves/NEMOGCM/SETTE/param.cfg

    r4373 r4924  
    11#- forcing files storing  
    2 FORCING_DIR=~/FORCING 
     2FORCING_DIR=/data/scihub-users/piethi/WORKDIR/dev_r4650_UKMO2_ice_shelves_merge/NEMOGCM/SETTE/FORCING 
    33#- input files storing  
    44INPUT_DIR=${CONFIG_DIR}/${NEW_CONF}/EXP00 
     
    66#TMPDIR=${CONFIG_DIR}/${NEW_CONF}/EXP00 
    77#- VALIDATION files storing  
    8 NEMO_VALIDATION_DIR=~/NEMO_VALIDATION 
     8NEMO_VALIDATION_DIR=/data/scihub-users/piethi/WORKDIR/dev_r4650_UKMO2_ice_shelves_merge/NEMOGCM/SETTE/NEMO_VALIDATION 
  • branches/2014/dev_r4650_UKMO2_ice_shelves/NEMOGCM/SETTE/prepare_exe_dir.sh

    r4373 r4924  
    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_r4650_UKMO2_ice_shelves/NEMOGCM/SETTE/prepare_job.sh

    r4373 r4924  
    182182fi 
    183183 
    184 # example for NOCS Altix system using PBS batch submission (requires ${SETTE_DIR}/sette_batch_template file) 
     184# example for NOCS ClusterVision system using SLURM batch submission (requires ${SETTE_DIR}/sette_batch_template file) 
    185185# 
    186186  #  if [ ${MPI_FLAG} == "no" ] ; then 
    187187      case ${COMPILER} in  
    188          ALTIX_NAUTILUS_MPT) 
    189                                 NB_REM=$( echo $NB_PROC $NXIO_PROC | awk '{print ( $1 + $2 ) % 4}') 
     188         X64_MOBILIS) 
     189                                NB_REM=$( echo $NB_PROC $NXIO_PROC | awk '{print ( $1 + $2 ) % 16}') 
    190190               if [ ${NB_REM} == 0 ] ; then 
    191                # number of processes required is an integer multiple of 4 
     191               # number of processes required is an integer multiple of 16 
    192192               # 
    193                NB_NODES=$( echo $NB_PROC $NXIO_PROC | awk '{print ($1 + $2 ) / 4}') 
     193               NB_NODES=$( echo $NB_PROC $NXIO_PROC | awk '{print ($1 + $2 ) / 16}') 
    194194            else 
    195195               # 
    196                # number of processes required is not an integer multiple of 4 
     196               # number of processes required is not an integer multiple of 16 
    197197               # round up the number of nodes required. 
    198198               # 
    199                NB_NODES=$( echo $NB_PROC $NXIO_PROC | awk '{printf("%d",($1 + $2 ) / 4 + 1 )}') 
     199               NB_NODES=$( echo $NB_PROC $NXIO_PROC | awk '{printf("%d",($1 + $2 ) / 16 + 1 )}') 
    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_r4650_UKMO2_ice_shelves/NEMOGCM/SETTE/sette.sh

    r4379 r4924  
    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# ISOMIP          :13 & 14 
     142# ORCA2_AGRIF_LIM :15 
     143for config in 9 10 #1 2 3 4 5 6 7 8 9 10 13 14 # 1 2 5 6 7 8 9 10 11 12 13 14 
    142144 
    143145do 
     
    629631fi 
    630632 
     633 
     634# TESTS FOR ORCA2_LIM3 CONFIGURATION 
     635if [ ${config} -eq 7 ] ;  then 
     636    ## Restartability tests for ORCA2_LIM3 
     637    export TEST_NAME="LONG" 
     638    cd ${CONFIG_DIR} 
     639    . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3_LONG -r ORCA2_LIM3 -j 8 del_key ${DEL_KEYS} 
     640    cd ${SETTE_DIR} 
     641    . ./param.cfg 
     642    . ./all_functions.sh 
     643    . ./prepare_exe_dir.sh 
     644    JOB_FILE=${EXE_DIR}/run_job.sh 
     645    NPROC=4 
     646    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     647    cd ${EXE_DIR} 
     648    set_namelist namelist_cfg cn_exp \"O2L3_LONG\" 
     649    set_namelist namelist_cfg nn_it000 1 
     650    set_namelist namelist_cfg nn_itend 150 
     651    set_namelist namelist_cfg nn_stock 75 
     652    set_namelist namelist_cfg ln_clobber .true. 
     653    set_namelist namelist_cfg nn_fwb 0 
     654    set_namelist namelist_cfg jpni 2 
     655    set_namelist namelist_cfg jpnj 2 
     656    set_namelist namelist_cfg jpnij 4 
     657    set_namelist namelist_cfg nn_solv 2 
     658    if [ ${USING_MPMD} == "yes" ] ; then 
     659       set_xio_using_server iodef.xml true 
     660    else 
     661       set_xio_using_server iodef.xml false 
     662    fi 
     663    cd ${SETTE_DIR} 
     664    . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
     665     
     666    cd ${SETTE_DIR} 
     667    export TEST_NAME="SHORT" 
     668    . ./prepare_exe_dir.sh 
     669    cd ${EXE_DIR} 
     670    set_namelist namelist_cfg cn_exp \"O2L3_SHORT\" 
     671    set_namelist namelist_cfg nn_it000 76 
     672    set_namelist namelist_cfg nn_itend 150 
     673    set_namelist namelist_cfg nn_stock 75 
     674    set_namelist namelist_cfg ln_rstart .true. 
     675    set_namelist namelist_cfg nn_rstctl 2 
     676    set_namelist namelist_cfg ln_clobber .true. 
     677    set_namelist namelist_cfg nn_fwb 0 
     678    set_namelist namelist_cfg jpni 2 
     679    set_namelist namelist_cfg jpnj 2 
     680    set_namelist namelist_cfg jpnij 4 
     681    set_namelist namelist_cfg nn_solv 2 
     682    set_namelist namelist_cfg cn_ocerst_in \"O2L3_LONG_00000075_restart\" 
     683    set_namelist namelist_ice_cfg cn_icerst_in \"O2L3_LONG_00000075_restart_ice\" 
     684    for (( i=1; i<=$NPROC; i++)) ; do 
     685        L_NPROC=$(( $i - 1 )) 
     686        L_NPROC=`printf "%04d\n" ${L_NPROC}` 
     687        ln -sf ../LONG/O2L3_LONG_00000075_restart_${L_NPROC}.nc . 
     688        ln -sf ../LONG/O2L3_LONG_00000075_restart_ice_${L_NPROC}.nc . 
     689    done 
     690    if [ ${USING_MPMD} == "yes" ] ; then 
     691       set_xio_using_server iodef.xml true 
     692    else 
     693       set_xio_using_server iodef.xml false 
     694    fi 
     695    cd ${SETTE_DIR} 
     696    . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
     697    cd ${SETTE_DIR} 
     698    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     699fi 
     700 
     701if [ ${config} -eq 8 ] ;  then 
     702    ## Reproducibility tests for ORCA2_LIM3 
     703    export TEST_NAME="REPRO_4_4" 
     704    cd ${CONFIG_DIR} 
     705    . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3_16 -r ORCA2_LIM3 -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} 
     706    cd ${SETTE_DIR} 
     707    . ./param.cfg 
     708    . ./all_functions.sh 
     709    . ./prepare_exe_dir.sh 
     710    JOB_FILE=${EXE_DIR}/run_job.sh 
     711    NPROC=16 
     712    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     713    cd ${EXE_DIR} 
     714    set_namelist namelist_cfg nn_it000 1 
     715    set_namelist namelist_cfg nn_itend 75 
     716    set_namelist namelist_cfg nn_fwb 0 
     717    set_namelist namelist_cfg ln_ctl .false. 
     718    set_namelist namelist_cfg ln_clobber .true. 
     719    set_namelist namelist_cfg jpni 4 
     720    set_namelist namelist_cfg jpnj 4 
     721    set_namelist namelist_cfg jpnij 16 
     722    set_namelist namelist_cfg nn_solv 2 
     723    if [ ${USING_MPMD} == "yes" ] ; then 
     724       set_xio_using_server iodef.xml true 
     725    else 
     726       set_xio_using_server iodef.xml false 
     727    fi 
     728    cd ${SETTE_DIR} 
     729    . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
     730    cd ${SETTE_DIR} 
     731    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     732 
     733    cd ${SETTE_DIR} 
     734    export TEST_NAME="REPRO_2_8" 
     735    . ./prepare_exe_dir.sh 
     736    JOB_FILE=${EXE_DIR}/run_job.sh 
     737    NPROC=16 
     738    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     739    cd ${EXE_DIR} 
     740    set_namelist namelist_cfg nn_it000 1 
     741    set_namelist namelist_cfg nn_itend 75 
     742    set_namelist namelist_cfg ln_clobber .true. 
     743    set_namelist namelist_cfg nn_fwb 0 
     744    set_namelist namelist_cfg jpni 2 
     745    set_namelist namelist_cfg jpnj 8 
     746    set_namelist namelist_cfg jpnij 16 
     747    set_namelist namelist_cfg nn_solv 2 
     748    if [ ${USING_MPMD} == "yes" ] ; then 
     749       set_xio_using_server iodef.xml true 
     750    else 
     751       set_xio_using_server iodef.xml false 
     752    fi 
     753 
     754    cd ${SETTE_DIR} 
     755    . ./prepare_job.sh input_ORCA2_LIM3.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
     756    cd ${SETTE_DIR} 
     757    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     758fi 
     759 
     760 
    631761# TESTS FOR AMM12 CONFIGURATION 
    632 if [ ${config} -eq 7 ] ;  then 
     762if [ ${config} -eq 9 ] ;  then 
    633763    ## Restartability tests for AMM12 
    634764    export TEST_NAME="LONG" 
     
    692822fi 
    693823 
    694 if [ ${config} -eq 8 ] ;  then 
     824if [ ${config} -eq 10 ] ;  then 
    695825## Reproducibility tests for AMM12 
    696826    export TEST_NAME="REPRO_8_4" 
     
    748878 
    749879# TESTS FOR ORCA2_SAS_LIM CONFIGURATION 
    750 if [ ${config} -eq 9 ] ;  then 
     880if [ ${config} -eq 11 ] ;  then 
    751881    ## Restartability tests for SAS 
    752882    export TEST_NAME="LONG" 
     
    810940fi 
    811941 
    812 if [ ${config} -eq 10 ] ;  then 
     942if [ ${config} -eq 12 ] ;  then 
    813943## Reproducibility tests for ORCA2_SAS_LIM 
    814944    export TEST_NAME="REPRO_8_4" 
     
    864994    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    865995fi 
     996# TESTS FOR ISOMIP CONFIGURATION 
     997if [ ${config} -eq 13 ] ;  then 
     998    ## Restartability tests for ISOMIP 
     999    export TEST_NAME="LONG" 
     1000    cd ${CONFIG_DIR} 
     1001    . ./makenemo -m ${CMP_NAM} -n ISOMIP_LONG -r ISOMIP -j 8 del_key ${DEL_KEYS} 
     1002    cd ${SETTE_DIR} 
     1003    . ./param.cfg 
     1004    . ./all_functions.sh 
     1005    . ./prepare_exe_dir.sh 
     1006    JOB_FILE=${EXE_DIR}/run_job.sh 
     1007    NPROC=4 
     1008    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     1009    cd ${EXE_DIR} 
     1010    set_namelist namelist_cfg cn_exp \"ISOMIP_LONG\" 
     1011    set_namelist namelist_cfg nn_it000 1 
     1012    set_namelist namelist_cfg nn_itend 96 
     1013    set_namelist namelist_cfg nn_stock 48 
     1014    set_namelist namelist_cfg ln_clobber .true. 
     1015    set_namelist namelist_cfg nn_fwb 0 
     1016    set_namelist namelist_cfg nn_solv 2 
     1017    set_namelist namelist_cfg jpni 2 
     1018    set_namelist namelist_cfg jpnj 2 
     1019    set_namelist namelist_cfg jpnij 4 
     1020    if [ ${USING_MPMD} == "yes" ] ; then 
     1021       set_xio_using_server iodef.xml true 
     1022    else 
     1023       set_xio_using_server iodef.xml false 
     1024    fi 
     1025    cd ${SETTE_DIR} 
     1026    . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
     1027 
     1028    cd ${SETTE_DIR} 
     1029    export TEST_NAME="SHORT" 
     1030    . ./prepare_exe_dir.sh 
     1031    cd ${EXE_DIR} 
     1032    set_namelist namelist_cfg cn_exp \"ISOMIP_SHORT\" 
     1033    set_namelist namelist_cfg nn_it000 49 
     1034    set_namelist namelist_cfg nn_itend 96 
     1035    set_namelist namelist_cfg nn_stock 48 
     1036    set_namelist namelist_cfg ln_rstart .true. 
     1037    set_namelist namelist_cfg nn_rstctl 2 
     1038    set_namelist namelist_cfg ln_clobber .true. 
     1039    set_namelist namelist_cfg nn_fwb 0 
     1040    set_namelist namelist_cfg nn_solv 2 
     1041    set_namelist namelist_cfg jpni 2 
     1042    set_namelist namelist_cfg jpnj 2 
     1043    set_namelist namelist_cfg jpnij 4 
     1044    set_namelist namelist_cfg cn_ocerst_in \"ISOMIP_LONG_00000048_restart\" 
     1045    if [ ${USING_MPMD} == "yes" ] ; then 
     1046       set_xio_using_server iodef.xml true 
     1047    else 
     1048       set_xio_using_server iodef.xml false 
     1049    fi 
     1050    for (( i=1; i<=$NPROC; i++)) ; do 
     1051        L_NPROC=$(( $i - 1 )) 
     1052        L_NPROC=`printf "%04d\n" ${L_NPROC}` 
     1053        ln -sf ../LONG/ISOMIP_LONG_00000048_restart_${L_NPROC}.nc . 
     1054    done 
     1055    if [ ${USING_MPMD} == "yes" ] ; then 
     1056       set_xio_using_server iodef.xml true 
     1057    else 
     1058       set_xio_using_server iodef.xml false 
     1059    fi 
     1060    cd ${SETTE_DIR} 
     1061    . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
     1062    cd ${SETTE_DIR} 
     1063    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     1064fi 
     1065if [ ${config} -eq 14 ] ;  then 
     1066    ## Reproducibility tests for ISOMIP 
     1067    export TEST_NAME="REPRO_1_4" 
     1068    cd ${CONFIG_DIR} 
     1069    . ./makenemo -m ${CMP_NAM} -n ISOMIP_4 -r ISOMIP -j 8 add_key "key_mpp_rep" del_key ${DEL_KEYS} 
     1070    cd ${SETTE_DIR} 
     1071    . ./param.cfg 
     1072    . ./all_functions.sh 
     1073    . ./prepare_exe_dir.sh 
     1074    JOB_FILE=${EXE_DIR}/run_job.sh 
     1075    NPROC=4 
     1076    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     1077    cd ${EXE_DIR} 
     1078    set_namelist namelist_cfg cn_exp \"ISOMIP_14\" 
     1079    set_namelist namelist_cfg nn_it000 1 
     1080    set_namelist namelist_cfg nn_itend 48 
     1081    set_namelist namelist_cfg nn_fwb 0 
     1082    set_namelist namelist_cfg nn_bench 0 
     1083    set_namelist namelist_cfg ln_ctl .false. 
     1084    set_namelist namelist_cfg ln_clobber .true. 
     1085    set_namelist namelist_cfg nn_solv 2 
     1086    set_namelist namelist_cfg jpni 1 
     1087    set_namelist namelist_cfg jpnj 4 
     1088    set_namelist namelist_cfg jpnij 4 
     1089    if [ ${USING_MPMD} == "yes" ] ; then 
     1090       set_xio_using_server iodef.xml true 
     1091    else 
     1092       set_xio_using_server iodef.xml false 
     1093    fi 
     1094    cd ${SETTE_DIR} 
     1095    . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
     1096    cd ${SETTE_DIR} 
     1097    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     1098 
     1099    cd ${SETTE_DIR} 
     1100    export TEST_NAME="REPRO_2_2" 
     1101    . ./prepare_exe_dir.sh 
     1102    JOB_FILE=${EXE_DIR}/run_job.sh 
     1103    NPROC=4 
     1104    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     1105    cd ${EXE_DIR} 
     1106    set_namelist namelist_cfg cn_exp \"ISOMIP_22\" 
     1107    set_namelist namelist_cfg nn_it000 1 
     1108    set_namelist namelist_cfg nn_itend 48 
     1109    set_namelist namelist_cfg nn_fwb 0 
     1110    set_namelist namelist_cfg ln_ctl .false. 
     1111    set_namelist namelist_cfg ln_clobber .true. 
     1112    set_namelist namelist_cfg nn_solv 2 
     1113    set_namelist namelist_cfg jpni 2 
     1114    set_namelist namelist_cfg jpnj 2 
     1115    set_namelist namelist_cfg jpnij 4 
     1116    if [ ${USING_MPMD} == "yes" ] ; then 
     1117       set_xio_using_server iodef.xml true 
     1118    else 
     1119       set_xio_using_server iodef.xml false 
     1120    fi 
     1121    cd ${SETTE_DIR} 
     1122    . ./prepare_job.sh input_ISOMIP.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
     1123    cd ${SETTE_DIR} 
     1124    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     1125 
     1126fi 
    8661127 
    8671128# TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests) 
    868 if [ ${config} -eq 11 ] ;  then 
     1129if [ ${config} -eq 15 ] ;  then 
    8691130    ## ORCA2_LIM with Agulhas AGRIF zoom in MPI 
    8701131    export TEST_NAME="SHORT" 
  • branches/2014/dev_r4650_UKMO2_ice_shelves/NEMOGCM/SETTE/sette_beginner.sh

    r4147 r4924  
    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}    
  • branches/2014/dev_r4650_UKMO2_ice_shelves/NEMOGCM/SETTE/sette_rpt

    r3725 r4924  
    1717  cd $NEMO_VALID 
    1818# 
    19 # The script also needs the date or revision tag. Currently this is taken from the latest sub-directory 
    20 # found in the WGYRE_LONG directory 
    21 # 
    22   set dorv = `ls -1rtd ./WGYRE_LONG/{$mach}/* | tail -1l ` 
    23   set dorv = $dorv:t 
     19# The script also needs the date or revision tag. Currently this is taken from the latest sub-directory found in each directory 
     20# 
    2421# 
    2522# Now loop through all the test directories. On the second pass the user can optionally examine any mismatched 
     
    3027foreach pass (0 1 ) 
    3128  if ( -d ./WGYRE_LONG ) then 
     29    set dorv = `ls -1rtd ./WGYRE_LONG/{$mach}/* | tail -1l ` 
     30    set dorv = $dorv:t 
    3231    set f1o = ./WGYRE_LONG/{$mach}/{$dorv}/LONG/ocean.output 
    3332    set f1s = ./WGYRE_LONG/{$mach}/{$dorv}/LONG/solver.stat 
     
    3938    cmp -s f1.tmp$$ $f2s 
    4039    if ( $status == 0 ) then 
    41       echo "GYRE     restartability  passed" 
    42     else 
    43       echo "GYRE     restartability  FAILED" 
    44       if ( $pass == 1 ) then 
    45         echo "<return> to view solver.stat differences" 
    46         set y = $< 
    47         sdiff f1.tmp$$ $f2s 
    48         echo "<return> to view ocean.output differences" 
    49         set y = $< 
    50         sdiff $f1o $f2o | grep "|" 
    51         echo "<return> to continue" 
    52         set y = $< 
    53       endif 
    54     endif 
    55     rm f1.tmp$$ 
    56   endif 
     40      echo "GYRE        restartability  passed" 
     41    else 
     42      echo "GYRE        restartability  FAILED" 
     43      if ( $pass == 1 ) then 
     44        echo "<return> to view solver.stat differences" 
     45        set y = $< 
     46        sdiff f1.tmp$$ $f2s 
     47        echo "<return> to view ocean.output differences" 
     48        set y = $< 
     49        sdiff $f1o $f2o | grep "|" 
     50        echo "<return> to continue" 
     51        set y = $< 
     52      endif 
     53    endif 
     54    rm f1.tmp$$ 
     55  endif 
     56 
     57  if ( -d ./WISOMIP_LONG ) then 
     58    set dorv = `ls -1rtd ./WISOMIP_LONG/{$mach}/* | tail -1l ` 
     59    set dorv = $dorv:t 
     60    set f1o = ./WISOMIP_LONG/{$mach}/{$dorv}/LONG/ocean.output 
     61    set f1s = ./WISOMIP_LONG/{$mach}/{$dorv}/LONG/solver.stat 
     62    set f2o = ./WISOMIP_LONG/{$mach}/{$dorv}/SHORT/ocean.output 
     63    set f2s = ./WISOMIP_LONG/{$mach}/{$dorv}/SHORT/solver.stat 
     64 
     65    set nl = `wc -l $f2s` 
     66    tail -$nl[1] $f1s > f1.tmp$$ 
     67    cmp -s f1.tmp$$ $f2s 
     68    if ( $status == 0 ) then 
     69      echo "ISOMIP      restartability  passed" 
     70    else 
     71      echo "ISOMIP      restartability  FAILED" 
     72      if ( $pass == 1 ) then 
     73        echo "<return> to view solver.stat differences" 
     74        set y = $< 
     75        sdiff f1.tmp$$ $f2s 
     76        echo "<return> to view ocean.output differences" 
     77        set y = $< 
     78        sdiff $f1o $f2o | grep "|" 
     79        echo "<return> to continue" 
     80        set y = $< 
     81      endif 
     82    endif 
     83    rm f1.tmp$$ 
     84  endif 
     85 
    5786   
    5887  if ( -d ./WORCA2LIMPIS_LONG ) then 
     88    set dorv = `ls -1rtd ./WORCA2LIMPIS_LONG/{$mach}/* | tail -1l ` 
     89    set dorv = $dorv:t 
    5990    set f1o = ./WORCA2LIMPIS_LONG/{$mach}/{$dorv}/LONG/ocean.output 
    6091    set f1s = ./WORCA2LIMPIS_LONG/{$mach}/{$dorv}/LONG/solver.stat 
     
    84115 
    85116  if ( -d ./WORCA2OFFPIS_LONG ) then 
     117    set dorv = `ls -1rtd ./WORCA2OFFPIS_LONG/{$mach}/* | tail -1l ` 
     118    set dorv = $dorv:t 
    86119    set f1o = ./WORCA2OFFPIS_LONG/{$mach}/{$dorv}/LONG/ocean.output 
    87120    set f1s = ./WORCA2OFFPIS_LONG/{$mach}/{$dorv}/LONG/tracer.stat 
     
    111144   
    112145  if ( -d ./WAMM12_LONG ) then 
     146    set dorv = `ls -1rtd ./WAMM12_LONG/{$mach}/* | tail -1l ` 
     147    set dorv = $dorv:t 
    113148    set f1o = ./WAMM12_LONG/{$mach}/{$dorv}/LONG/ocean.output 
    114149    set f1s = ./WAMM12_LONG/{$mach}/{$dorv}/LONG/solver.stat 
     
    136171    rm f1.tmp$$ 
    137172  endif 
    138  
     173  if ( -d ./WORCA2LIM3_LONG ) then 
     174    set dorv = `ls -1rtd ./WORCA2LIM3_LONG/{$mach}/* | tail -1l ` 
     175    set dorv = $dorv:t 
     176    set f1o = ./WORCA2LIM3_LONG/{$mach}/{$dorv}/LONG/ocean.output 
     177    set f1s = ./WORCA2LIM3_LONG/{$mach}/{$dorv}/LONG/solver.stat 
     178    set f2o = ./WORCA2LIM3_LONG/{$mach}/{$dorv}/SHORT/ocean.output 
     179    set f2s = ./WORCA2LIM3_LONG/{$mach}/{$dorv}/SHORT/solver.stat 
     180 
     181    set nl = `wc -l $f2s` 
     182    tail -$nl[1] $f1s > f1.tmp$$ 
     183    cmp -s f1.tmp$$ $f2s 
     184    if ( $status == 0 ) then 
     185      echo "ORCA2LIM3       restartability  passed" 
     186    else 
     187      echo "ORCA2LIM3       restartability  FAILED" 
     188      if ( $pass == 1 ) then 
     189        echo "<return> to view solver.stat differences" 
     190        set y = $< 
     191        sdiff f1.tmp$$ $f2s 
     192        echo "<return> to view ocean.output differences" 
     193        set y = $< 
     194        sdiff $f1o $f2o | grep "|" 
     195        echo "<return> to continue" 
     196        set y = $< 
     197      endif 
     198    endif 
     199    rm f1.tmp$$ 
     200  endif 
     201NEXT0: 
     202  if ( -d ./WSAS_LONG ) then 
     203    set dorv = `ls -1rtd ./WSAS_LONG/{$mach}/* | tail -1l ` 
     204    set dorv = $dorv:t 
     205    set f1o = ./WSAS_LONG/{$mach}/{$dorv}/LONG/ocean.output 
     206    set f1s = ./WSAS_LONG/{$mach}/{$dorv}/LONG/solver.stat 
     207    set f2o = ./WSAS_LONG/{$mach}/{$dorv}/SHORT/ocean.output 
     208    set f2s = ./WSAS_LONG/{$mach}/{$dorv}/SHORT/solver.stat 
     209 
     210    foreach f ( $f1o $f1s $f2o $f2s ) 
     211     if ( ! -f $f ) then 
     212      echo 'SAS         restartability  inconclusive ( ' $f:t ' not found )' 
     213      goto NEXT 
     214     endif 
     215    end 
     216 
     217    set nl = `wc -l $f2s` 
     218    tail -$nl[1] $f1s > f1.tmp$$ 
     219    cmp -s f1.tmp$$ $f2s 
     220    if ( $status == 0 ) then 
     221      echo "SAS         restartability  passed" 
     222    else 
     223      echo "SAS         restartability  FAILED" 
     224      if ( $pass == 1 ) then 
     225        echo "<return> to view solver.stat differences" 
     226        set y = $< 
     227        sdiff f1.tmp$$ $f2s 
     228        echo "<return> to view ocean.output differences" 
     229        set y = $< 
     230        sdiff $f1o $f2o | grep "|" 
     231        echo "<return> to continue" 
     232        set y = $< 
     233      endif 
     234    endif 
     235    rm f1.tmp$$ 
     236  endif 
     237 
     238NEXT: 
    139239echo 
    140240   
    141241  if ( -d ./WGYRE_4 ) then 
     242    set dorv = `ls -1rtd ./WGYRE_4/{$mach}/* | tail -1l ` 
     243    set dorv = $dorv:t 
    142244    set f1o = ./WGYRE_4/{$mach}/{$dorv}/REPRO_1_4/ocean.output 
    143245    set f1s = ./WGYRE_4/{$mach}/{$dorv}/REPRO_1_4/solver.stat 
     
    147249    cmp -s $f1s $f2s 
    148250    if ( $status == 0 ) then 
    149       echo "GYRE     reproducibility passed" 
    150     else 
    151       echo "GYRE     reproducibility FAILED" 
    152       if ( $pass == 1 ) then 
    153         echo "<return> to view solver.stat differences" 
    154         set y = $< 
    155         sdiff $f1s $f2s 
    156         echo "<return> to view ocean.output differences" 
    157         set y = $< 
    158         sdiff $f1o $f2o | grep "|" 
    159         echo "<return> to continue" 
    160         set y = $< 
    161       endif 
    162     endif 
    163   endif 
    164    
     251      echo "GYRE        reproducibility passed" 
     252    else 
     253      echo "GYRE        reproducibility FAILED" 
     254      if ( $pass == 1 ) then 
     255        echo "<return> to view solver.stat differences" 
     256        set y = $< 
     257        sdiff $f1s $f2s 
     258        echo "<return> to view ocean.output differences" 
     259        set y = $< 
     260        sdiff $f1o $f2o | grep "|" 
     261        echo "<return> to continue" 
     262        set y = $< 
     263      endif 
     264    endif 
     265  endif 
     266 
     267  if ( -d ./WISOMIP_4 ) then 
     268    set dorv = `ls -1rtd ./WISOMIP_4/{$mach}/* | tail -1l ` 
     269    set dorv = $dorv:t 
     270    set f1o = ./WISOMIP_4/{$mach}/{$dorv}/REPRO_1_4/ocean.output 
     271    set f1s = ./WISOMIP_4/{$mach}/{$dorv}/REPRO_1_4/solver.stat 
     272    set f2o = ./WISOMIP_4/{$mach}/{$dorv}/REPRO_2_2/ocean.output 
     273    set f2s = ./WISOMIP_4/{$mach}/{$dorv}/REPRO_2_2/solver.stat 
     274 
     275    cmp -s $f1s $f2s 
     276    if ( $status == 0 ) then 
     277      echo "ISOMIP      reproducibility passed" 
     278    else 
     279      echo "ISOMIP      reproducibility FAILED" 
     280      if ( $pass == 1 ) then 
     281        echo "<return> to view solver.stat differences" 
     282        set y = $< 
     283        sdiff $f1s $f2s 
     284        echo "<return> to view ocean.output differences" 
     285        set y = $< 
     286        sdiff $f1o $f2o | grep "|" 
     287        echo "<return> to continue" 
     288        set y = $< 
     289      endif 
     290    endif 
     291  endif 
     292  
    165293  if ( -d ./WORCA2LIMPIS_16 ) then 
     294    set dorv = `ls -1rtd ./WORCA2LIMPIS_16/{$mach}/* | tail -1l ` 
     295    set dorv = $dorv:t 
    166296    set f1o = ./WORCA2LIMPIS_16/{$mach}/{$dorv}/REPRO_2_8/ocean.output 
    167297    set f1s = ./WORCA2LIMPIS_16/{$mach}/{$dorv}/REPRO_2_8/solver.stat 
     
    188318 
    189319  if ( -d ./WORCA2OFFPIS_16 ) then 
     320    set dorv = `ls -1rtd ./WORCA2OFFPIS_16/{$mach}/* | tail -1l ` 
     321    set dorv = $dorv:t 
    190322    set f1o = ./WORCA2OFFPIS_16/{$mach}/{$dorv}/REPRO_2_8/ocean.output 
    191323    set f1s = ./WORCA2OFFPIS_16/{$mach}/{$dorv}/REPRO_2_8/tracer.stat 
     
    212344   
    213345  if ( -d ./WAMM12_32 ) then 
     346    set dorv = `ls -1rtd ./WAMM12_32/{$mach}/* | tail -1l ` 
     347    set dorv = $dorv:t 
    214348    set f1o = ./WAMM12_32/{$mach}/{$dorv}/REPRO_4_8/ocean.output 
    215349    set f1s = ./WAMM12_32/{$mach}/{$dorv}/REPRO_4_8/solver.stat 
     
    234368    endif 
    235369  endif 
     370  if ( -d ./WORCA2LIM3_16 ) then 
     371    set dorv = `ls -1rtd ./WORCA2LIM3_16/{$mach}/* | tail -1l ` 
     372    set dorv = $dorv:t 
     373    set f1o = ./WORCA2LIM3_16/{$mach}/{$dorv}/REPRO_2_8/ocean.output 
     374    set f1s = ./WORCA2LIM3_16/{$mach}/{$dorv}/REPRO_2_8/solver.stat 
     375    set f2o = ./WORCA2LIM3_16/{$mach}/{$dorv}/REPRO_4_4/ocean.output 
     376    set f2s = ./WORCA2LIM3_16/{$mach}/{$dorv}/REPRO_4_4/solver.stat 
     377 
     378    cmp -s $f1s $f2s 
     379    if ( $status == 0 ) then 
     380      echo "ORCA2LIM3   reproducibility passed" 
     381    else 
     382      echo "ORCA2LIM3   reproducibility FAILED" 
     383      if ( $pass == 1 ) then 
     384        echo "<return> to view solver.stat differences" 
     385        set y = $< 
     386        sdiff $f1s $f2s 
     387        echo "<return> to view ocean.output differences" 
     388        set y = $< 
     389        sdiff $f1o $f2o | grep "|" 
     390        echo "<return> to continue" 
     391        set y = $< 
     392      endif 
     393    endif 
     394  endif 
     395 
     396 
     397  if ( -d ./WSAS_32 ) then 
     398    set dorv = `ls -1rtd ./WSAS_32/{$mach}/* | tail -1l ` 
     399    set dorv = $dorv:t 
     400    set f1o = ./WSAS_32/{$mach}/{$dorv}/REPRO_4_8/ocean.output 
     401    set f1s = ./WSAS_32/{$mach}/{$dorv}/REPRO_4_8/solver.stat 
     402    set f2o = ./WSAS_32/{$mach}/{$dorv}/REPRO_8_4/ocean.output 
     403    set f2s = ./WSAS_32/{$mach}/{$dorv}/REPRO_8_4/solver.stat 
     404 
     405    foreach f ( $f1o $f1s $f2o $f2s ) 
     406     if ( ! -f $f ) then 
     407      echo 'SAS         reproducibility inconclusive ( ' $f:t ' not found )' 
     408      goto NEXT1 
     409     endif 
     410    end 
     411 
     412    cmp -s $f1s $f2s 
     413    if ( $status == 0 ) then 
     414      echo "SAS reproducibility passed" 
     415    else 
     416      echo "SAS reproducibility FAILED" 
     417      if ( $pass == 1 ) then 
     418        echo "<return> to view solver.stat differences" 
     419        set y = $< 
     420        sdiff $f1s $f2s 
     421        echo "<return> to view ocean.output differences" 
     422        set y = $< 
     423        sdiff $f1o $f2o | grep "|" 
     424        echo "<return> to continue" 
     425        set y = $< 
     426      endif 
     427    endif 
     428  endif 
     429NEXT1: 
    236430 
    237431  if ( -d ./WORCA2AGUL_1_2 ) then 
     432    set dorv = `ls -1rtd ./WORCA2AGUL_1_2/{$mach}/* | tail -1l ` 
     433    set dorv = $dorv:t 
    238434    set f1o = ./WORCA2AGUL_1_2/{$mach}/{$dorv}/SHORT/ocean.output 
    239435    set f1s = ./WORCA2AGUL_1_2/{$mach}/{$dorv}/SHORT/solver.stat 
  • branches/2014/dev_r4650_UKMO2_ice_shelves/NEMOGCM/SETTE/sette_xios.sh

    r4373 r4924  
    11#!/bin/bash 
    22############################################################ 
    3 # Author : Simona Flavoni for NEMO 
    4 # Contact: sflod@locean-ipsl.upmc.fr 
    5 # 2013   : A.C. Coward added options for testing with XIOS in dettached mode 
    6 # 
    7 # sette.sh   : principal script of SET TEsts for NEMO (SETTE) 
     3# Author : Italo Epicoco - CMCC 
     4# Contact: italo.epicoco@unisalento.it 
     5# 2014   : A.C. Coward added new namelist settings for GYRE configuration 
     6# 
     7# sette_xios.sh   : additional script of SET TEsts for XIOS within NEMO 
    88# ---------------------------------------------------------------------- 
    9 # NEMO/SETTE , NEMO Consortium (2010) 
     9# NEMO/SETTE , NEMO Consortium (2014) 
    1010# Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
    1111# ---------------------------------------------------------------------- 
     
    2929# MPIRUN_FLAG       : flag to run in parallel (MPI) "yes" 
    3030#                           to run in sequential mode (NB_PROC = 1) "no" 
    31 # USING_XIOS        : flag to control the activation of key_iomput 
    32 #                      "yes" to compile using key_iomput and link to the external XIOS library 
    33 #                      "no"  to compile without key_iomput and link to the old IOIPSL library 
    3431# USING_MPMD        : flag to control the use of stand-alone IO servers 
    35 #                     requires USING_XIOS="yes" 
    36 #                      "yes" to run in MPMD (detached) mode with stand-alone IO servers 
    37 #                      "no"  to run in SPMD (attached) mode without separate IO servers  
     32#                      "true" to run in MPMD (detached) mode with stand-alone IO servers 
     33#                      "false"  to run in SPMD (attached) mode without separate IO servers  
    3834# NUM_XIOSERVERS    : number of stand-alone IO servers to employ 
    39 #                     set to zero if USING_MPMD="no" 
    40 # 
    41 # Principal script is sette.sh, that calls  
     35#                     set to zero if USING_MPMD="false" 
     36# 
     37# Principal script is sette_xios.sh, that calls  
    4238# 
    4339#  makenemo  : to create successive exectuables in ${CONFIG_NAME}/BLD/bin/nemo.exe  
     
    8177#        executed commands 
    8278# 
    83 #  NOTE: if sette.sh is stopped in output.sette there is written the last command  
    84 #        executed by sette.sh 
    85 # 
    86 # example use: ./sette.sh  
     79#  NOTE: if sette_xios.sh is stopped in output.sette there is written the last command  
     80#        executed by sette_xios.sh 
     81# 
     82# example use: ./sette_xios.sh  
    8783######################################################################################### 
    8884# 
    8985# Compiler among those in NEMOGCM/ARCH 
    90 COMPILER=tobedefined 
     86COMPILER= 
    9187export BATCH_COMMAND_PAR="llsubmit" 
    9288export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR 
     
    10399 
    104100CMP_NAM=${1:-$COMPILER} 
     101# 
     102#================================================================================= 
    105103# Copy job_batch_COMPILER file for specific compiler into job_batch_template 
     104# Note this batch template needs to be capable of launching both SPMD and MPMD 
     105# tasks with internal selection depending on the value of NUM_XIOSERVERS 
     106# (0=SPMD; >0 = MPMD) 
     107#================================================================================= 
     108# 
    106109cd ${SETTE_DIR} 
    107110cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    108111 
    109 for config in  
     112for config in 1  
    110113 
    111114do 
    112115 
    113 # TESTS FOR GYRE CONFIGURATION 
     116#========================================================== 
     117# TESTS FOR XIOS USING GYRE CONFIGURATION AT LOW RESOLUTION 
     118#========================================================== 
     119 
    114120if [ ${config} -eq 1 ] ;  then 
    115     ## Restartability tests for GYRE 
     121    ## Test of XIOS configured in attached mode with multiple output files (one for each process).  
     122    ## $NPROC processes are used  
    116123 
    117124    NPROC=4 
     125    jp_cfg=1 
     126    jpni=2 
     127    jpnj=2 
    118128    export NUM_XIOSERVERS=0 
    119129    export USING_MPMD="false" 
     
    124134    . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_XIOS_LR -r GYRE_XIOS -j 8  
    125135    cd ${SETTE_DIR} 
    126     . param.cfg 
    127     . all_functions.sh 
    128     . prepare_exe_dir.sh 
     136    . ./param.cfg 
     137    . ./all_functions.sh 
     138    . ./prepare_exe_dir.sh 
    129139    JOB_FILE=${EXE_DIR}/run_job.sh 
    130140    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     
    133143    set_namelist namelist_cfg nn_it000 1 
    134144    set_namelist namelist_cfg nn_itend 120 
    135     set_namelist namelist_cfg nn_stock 60 
    136     set_namelist namelist_cfg ln_clobber .true. 
    137     set_namelist namelist_cfg jp_cfg 1 
    138     set_namelist namelist_cfg jpni 2 
    139     set_namelist namelist_cfg jpnj 2 
     145    set_namelist namelist_cfg nn_stock 120 
     146    set_namelist namelist_cfg ln_clobber .true. 
     147    set_namelist namelist_cfg jp_cfg $jp_cfg 
     148    set_namelist namelist_cfg jpidta $(( $jp_cfg * 30 + 2 )) 
     149    set_namelist namelist_cfg jpjdta $(( $jp_cfg * 20 + 2 )) 
     150    set_namelist namelist_cfg jpiglo $(( $jp_cfg * 30 + 2 )) 
     151    set_namelist namelist_cfg jpjglo $(( $jp_cfg * 20 + 2 )) 
     152    set_namelist namelist_cfg jpni $jpni 
     153    set_namelist namelist_cfg jpnj $jpnj 
    140154    set_namelist namelist_cfg jpnij $NPROC 
    141155 
     
    149163    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    150164 
     165 
     166    ## Test of XIOS configured in attached mode with a single output file.  
    151167 
    152168    export TEST_NAME="ATTACHED_ONE" 
     
    154170    export USING_MPMD="false" 
    155171    cd ${SETTE_DIR}  
    156     . prepare_exe_dir.sh 
     172    . ./prepare_exe_dir.sh 
    157173    JOB_FILE=${EXE_DIR}/run_job.sh 
    158174    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     
    161177    set_namelist namelist_cfg nn_it000 1 
    162178    set_namelist namelist_cfg nn_itend 120 
    163     set_namelist namelist_cfg nn_stock 60 
    164     set_namelist namelist_cfg ln_clobber .true. 
    165     set_namelist namelist_cfg jp_cfg 1 
    166     set_namelist namelist_cfg jpni 2 
    167     set_namelist namelist_cfg jpnj 2 
     179    set_namelist namelist_cfg nn_stock 120 
     180    set_namelist namelist_cfg ln_clobber .true. 
     181    set_namelist namelist_cfg jp_cfg $jp_cfg 
     182    set_namelist namelist_cfg jpidta $(( $jp_cfg * 30 + 2 )) 
     183    set_namelist namelist_cfg jpjdta $(( $jp_cfg * 20 + 2 )) 
     184    set_namelist namelist_cfg jpiglo $(( $jp_cfg * 30 + 2 )) 
     185    set_namelist namelist_cfg jpjglo $(( $jp_cfg * 20 + 2 )) 
     186    set_namelist namelist_cfg jpni $jpni 
     187    set_namelist namelist_cfg jpnj $jpnj 
    168188    set_namelist namelist_cfg jpnij $NPROC 
    169189 
     
    177197    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    178198 
     199 
     200    ## Test of XIOS configured in detached mode with a single output file.  
     201    ## $NUM_XIOSERVERS IO server are used. 
     202    ## the total number of allocated cores is $NUM_XIOSERVERS + $NPROC  
    179203 
    180204    export TEST_NAME="DETACHED_ONE" 
     
    182206    export USING_MPMD="true" 
    183207    cd ${SETTE_DIR} 
    184     . prepare_exe_dir.sh 
     208# 
     209    . ./prepare_exe_dir.sh 
    185210    JOB_FILE=${EXE_DIR}/run_job.sh 
    186211    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     
    189214    set_namelist namelist_cfg nn_it000 1 
    190215    set_namelist namelist_cfg nn_itend 120 
    191     set_namelist namelist_cfg nn_stock 60 
    192     set_namelist namelist_cfg ln_clobber .true. 
    193     set_namelist namelist_cfg jp_cfg 1 
    194     set_namelist namelist_cfg jpni 2 
    195     set_namelist namelist_cfg jpnj 2 
     216    set_namelist namelist_cfg nn_stock 120 
     217    set_namelist namelist_cfg ln_clobber .true. 
     218    set_namelist namelist_cfg jp_cfg $jp_cfg 
     219    set_namelist namelist_cfg jpidta $(( $jp_cfg * 30 + 2 )) 
     220    set_namelist namelist_cfg jpjdta $(( $jp_cfg * 20 + 2 )) 
     221    set_namelist namelist_cfg jpiglo $(( $jp_cfg * 30 + 2 )) 
     222    set_namelist namelist_cfg jpjglo $(( $jp_cfg * 20 + 2 )) 
     223    set_namelist namelist_cfg jpni $jpni 
     224    set_namelist namelist_cfg jpnj $jpnj 
    196225    set_namelist namelist_cfg jpnij $NPROC 
    197226 
     
    204233    cd ${SETTE_DIR} 
    205234    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     235 
     236    ## Test of XIOS configured in detached mode with multiple output files (one for each IO server).  
     237    ## $NUM_XIOSERVERS IO server are used. 
     238    ## the total number of allocated cores is $NUM_XIOSERVERS + $NPROC  
     239 
    206240 
    207241    export TEST_NAME="DETACHED_MULTIPLE" 
     
    209243    export USING_MPMD="true" 
    210244    cd ${SETTE_DIR} 
    211     . prepare_exe_dir.sh 
     245    . ./prepare_exe_dir.sh 
    212246    JOB_FILE=${EXE_DIR}/run_job.sh 
    213247    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     
    216250    set_namelist namelist_cfg nn_it000 1 
    217251    set_namelist namelist_cfg nn_itend 120 
    218     set_namelist namelist_cfg nn_stock 60 
    219     set_namelist namelist_cfg ln_clobber .true. 
    220     set_namelist namelist_cfg jp_cfg 1 
    221     set_namelist namelist_cfg jpni 2 
    222     set_namelist namelist_cfg jpnj 2 
     252    set_namelist namelist_cfg nn_stock 120 
     253    set_namelist namelist_cfg ln_clobber .true. 
     254    set_namelist namelist_cfg jp_cfg $jp_cfg 
     255    set_namelist namelist_cfg jpidta $(( $jp_cfg * 30 + 2 )) 
     256    set_namelist namelist_cfg jpjdta $(( $jp_cfg * 20 + 2 )) 
     257    set_namelist namelist_cfg jpiglo $(( $jp_cfg * 30 + 2 )) 
     258    set_namelist namelist_cfg jpjglo $(( $jp_cfg * 20 + 2 )) 
     259    set_namelist namelist_cfg jpni $jpni 
     260    set_namelist namelist_cfg jpnj $jpnj 
    223261    set_namelist namelist_cfg jpnij $NPROC 
    224262 
     
    234272fi 
    235273 
     274#========================================================== 
     275# TESTS FOR XIOS USING GYRE CONFIGURATION AT HIGH RESOLUTION 
     276#========================================================== 
     277 
    236278if [ ${config} -eq 2 ] ;  then 
    237     ## Restartability tests for GYRE 
    238  
    239     NPROC=152 
     279    ## Test of XIOS configured in attached mode with multiple output files (one for each process).  
     280    ## $NPROC processes are used  
     281 
     282    NPROC=64 
     283    jp_cfg=30 
     284    jpni=8 
     285    jpnj=8 
    240286    export NUM_XIOSERVERS=0 
    241287    export USING_MPMD="false" 
     
    246292    . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_XIOS_HR -r GYRE_XIOS -j 8 
    247293    cd ${SETTE_DIR} 
    248     . param.cfg 
    249     . all_functions.sh 
    250     . prepare_exe_dir.sh 
     294# 
     295    . ./param.cfg 
     296    . ./all_functions.sh 
     297    . ./prepare_exe_dir.sh 
     298# 
    251299    JOB_FILE=${EXE_DIR}/run_job.sh 
    252300    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     
    258306    set_namelist namelist_cfg nn_bench 1 
    259307    set_namelist namelist_cfg ln_clobber .true. 
    260     set_namelist namelist_cfg jp_cfg 144 
    261     set_namelist namelist_cfg jpni 19 
    262     set_namelist namelist_cfg jpnj 8 
     308    set_namelist namelist_cfg jp_cfg $jp_cfg 
     309    set_namelist namelist_cfg jpidta $(( $jp_cfg * 30 + 2 )) 
     310    set_namelist namelist_cfg jpjdta $(( $jp_cfg * 20 + 2 )) 
     311    set_namelist namelist_cfg jpiglo $(( $jp_cfg * 30 + 2 )) 
     312    set_namelist namelist_cfg jpjglo $(( $jp_cfg * 20 + 2 )) 
     313    set_namelist namelist_cfg jpni $jpni 
     314    set_namelist namelist_cfg jpnj $jpnj 
    263315    set_namelist namelist_cfg jpnij $NPROC 
    264316 
     
    273325 
    274326 
     327    ## Test of XIOS configured in attached mode with a single output file.  
    275328 
    276329    export TEST_NAME="ATTACHED_ONE" 
     
    278331    export USING_MPMD="false" 
    279332    cd ${SETTE_DIR} 
    280     . prepare_exe_dir.sh 
     333# 
     334    . ./prepare_exe_dir.sh 
     335# 
    281336    JOB_FILE=${EXE_DIR}/run_job.sh 
    282337    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     
    288343    set_namelist namelist_cfg nn_bench 1 
    289344    set_namelist namelist_cfg ln_clobber .true. 
    290     set_namelist namelist_cfg jp_cfg 144 
    291     set_namelist namelist_cfg jpni 19 
    292     set_namelist namelist_cfg jpnj 8 
     345    set_namelist namelist_cfg jp_cfg $jp_cfg 
     346    set_namelist namelist_cfg jpidta $(( $jp_cfg * 30 + 2 )) 
     347    set_namelist namelist_cfg jpjdta $(( $jp_cfg * 20 + 2 )) 
     348    set_namelist namelist_cfg jpiglo $(( $jp_cfg * 30 + 2 )) 
     349    set_namelist namelist_cfg jpjglo $(( $jp_cfg * 20 + 2 )) 
     350    set_namelist namelist_cfg jpni $jpni 
     351    set_namelist namelist_cfg jpnj $jpnj 
    293352    set_namelist namelist_cfg jpnij $NPROC 
    294353 
     
    301360    cd ${SETTE_DIR} 
    302361    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     362 
     363 
     364    ## Test of XIOS configured in detached mode with a single output file.  
     365    ## $NUM_XIOSERVERS IO server are used. 
     366    ## the total number of allocated cores is $NUM_XIOSERVERS + $NPROC  
    303367 
    304368    export TEST_NAME="DETACHED_ONE" 
     
    306370    export USING_MPMD="true" 
    307371    cd ${SETTE_DIR} 
    308     . prepare_exe_dir.sh 
     372# 
     373    . ./prepare_exe_dir.sh 
     374# 
    309375    JOB_FILE=${EXE_DIR}/run_job.sh 
    310376    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     
    316382    set_namelist namelist_cfg nn_bench 1 
    317383    set_namelist namelist_cfg ln_clobber .true. 
    318     set_namelist namelist_cfg jp_cfg 144 
    319     set_namelist namelist_cfg jpni 19 
    320     set_namelist namelist_cfg jpnj 8 
     384    set_namelist namelist_cfg jp_cfg $jp_cfg 
     385    set_namelist namelist_cfg jpidta $(( $jp_cfg * 30 + 2 )) 
     386    set_namelist namelist_cfg jpjdta $(( $jp_cfg * 20 + 2 )) 
     387    set_namelist namelist_cfg jpiglo $(( $jp_cfg * 30 + 2 )) 
     388    set_namelist namelist_cfg jpjglo $(( $jp_cfg * 20 + 2 )) 
     389    set_namelist namelist_cfg jpni $jpni 
     390    set_namelist namelist_cfg jpnj $jpnj 
    321391    set_namelist namelist_cfg jpnij $NPROC 
    322392 
     
    329399    cd ${SETTE_DIR} 
    330400    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     401 
     402    ## Test of XIOS configured in detached mode with multiple output files (one for each IO server).  
     403    ## $NUM_XIOSERVERS IO server are used. 
     404    ## the total number of allocated cores is $NUM_XIOSERVERS + $NPROC  
    331405 
    332406    export TEST_NAME="DETACHED_MULTIPLE" 
     
    334408    export USING_MPMD="true" 
    335409    cd ${SETTE_DIR} 
    336     . prepare_exe_dir.sh 
     410    . ./prepare_exe_dir.sh 
    337411    JOB_FILE=${EXE_DIR}/run_job.sh 
    338412    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     
    344418    set_namelist namelist_cfg nn_bench 1 
    345419    set_namelist namelist_cfg ln_clobber .true. 
    346     set_namelist namelist_cfg jp_cfg 144 
    347     set_namelist namelist_cfg jpni 19 
    348     set_namelist namelist_cfg jpnj 8 
     420    set_namelist namelist_cfg jp_cfg $jp_cfg 
     421    set_namelist namelist_cfg jpidta $(( $jp_cfg * 30 + 2 )) 
     422    set_namelist namelist_cfg jpjdta $(( $jp_cfg * 20 + 2 )) 
     423    set_namelist namelist_cfg jpiglo $(( $jp_cfg * 30 + 2 )) 
     424    set_namelist namelist_cfg jpjglo $(( $jp_cfg * 20 + 2 )) 
     425    set_namelist namelist_cfg jpni $jpni 
     426    set_namelist namelist_cfg jpnj $jpnj 
    349427    set_namelist namelist_cfg jpnij $NPROC 
    350428 
Note: See TracChangeset for help on using the changeset viewer.