Changeset 9525


Ignore:
Timestamp:
2018-04-29T23:05:24+02:00 (2 years ago)
Author:
clem
Message:

change sette so that GYRE configuration runs and report is readable

Location:
branches/2017/dev_merge_2017/NEMOGCM/SETTE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/SETTE/sette.sh

    r9518 r9525  
    152152    export TEST_NAME="LONG" 
    153153    cd ${CONFIG_DIR0} 
    154     . ./makenemo -m ${CMP_NAM} -n GYREPIS_ST -r GYRE_PISCES -j 8 del_key ${DEL_KEYS} 
    155     cd ${SETTE_DIR} 
    156     . ./param.cfg 
    157     . ./all_functions.sh 
    158     . ./prepare_exe_dir.sh 
    159     JOB_FILE=${EXE_DIR}/run_job.sh 
    160     NPROC=32 
     154    . ./makenemo -m ${CMP_NAM} -n GYRE_PISCES_ST -r GYRE_PISCES -j 8 del_key ${DEL_KEYS} 
     155    cd ${SETTE_DIR} 
     156    . ./param.cfg 
     157    . ./all_functions.sh 
     158    . ./prepare_exe_dir.sh 
     159    JOB_FILE=${EXE_DIR}/run_job.sh 
     160    NPROC=8 
    161161    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
    162162    cd ${EXE_DIR}   
     
    166166    set_namelist namelist_cfg nn_stock 60 
    167167    set_namelist namelist_cfg ln_linssh .true. 
    168     set_namelist namelist_cfg jpni 4 
    169     set_namelist namelist_cfg jpnj 8 
    170     set_namelist namelist_cfg jpnij 32 
     168    set_namelist namelist_cfg jpni 2 
     169    set_namelist namelist_cfg jpnj 4 
     170    set_namelist namelist_cfg jpnij 8 
    171171    if [ ${USING_MPMD} == "yes" ] ; then 
    172172       set_xio_using_server iodef.xml true 
     
    188188    set_namelist namelist_cfg nn_rstctl 2 
    189189    set_namelist namelist_cfg ln_linssh .true. 
    190     set_namelist namelist_cfg jpni 4 
    191     set_namelist namelist_cfg jpnj 8 
    192     set_namelist namelist_cfg jpnij 32 
     190    set_namelist namelist_cfg jpni 2 
     191    set_namelist namelist_cfg jpnj 4 
     192    set_namelist namelist_cfg jpnij 8 
    193193    set_namelist namelist_top_cfg ln_rsttr .true. 
    194194    set_namelist namelist_top_cfg nn_rsttr 2 
     
    217217 
    218218## Reproducibility tests for GYRE_PISCES 
    219     export TEST_NAME="REPRO_4_8" 
    220     cd ${CONFIG_DIR0} 
    221     cd ${SETTE_DIR} 
    222     . ./param.cfg 
    223     . ./all_functions.sh 
    224     . ./prepare_exe_dir.sh 
    225     JOB_FILE=${EXE_DIR}/run_job.sh 
    226     NPROC=32 
     219    export TEST_NAME="REPRO_2_4" 
     220    cd ${CONFIG_DIR0} 
     221    cd ${SETTE_DIR} 
     222    . ./param.cfg 
     223    . ./all_functions.sh 
     224    . ./prepare_exe_dir.sh 
     225    JOB_FILE=${EXE_DIR}/run_job.sh 
     226    NPROC=8 
    227227    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
    228228    cd ${EXE_DIR} 
     
    231231    set_namelist namelist_cfg nn_itend 60 
    232232    set_namelist namelist_cfg ln_linssh .true. 
    233     set_namelist namelist_cfg jpni 4 
    234     set_namelist namelist_cfg jpnj 8 
    235     set_namelist namelist_cfg jpnij 32 
     233    set_namelist namelist_cfg jpni 2 
     234    set_namelist namelist_cfg jpnj 4 
     235    set_namelist namelist_cfg jpnij 8 
    236236    if [ ${USING_MPMD} == "yes" ] ; then 
    237237       set_xio_using_server iodef.xml true 
     
    245245 
    246246    cd ${SETTE_DIR} 
    247     export TEST_NAME="REPRO_8_4" 
    248     . ./prepare_exe_dir.sh 
    249     JOB_FILE=${EXE_DIR}/run_job.sh 
    250     NPROC=32 
     247    export TEST_NAME="REPRO_4_2" 
     248    . ./prepare_exe_dir.sh 
     249    JOB_FILE=${EXE_DIR}/run_job.sh 
     250    NPROC=8 
    251251    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
    252252    cd ${EXE_DIR} 
     
    255255    set_namelist namelist_cfg nn_itend 60 
    256256    set_namelist namelist_cfg ln_linssh .true. 
    257     set_namelist namelist_cfg jpni 8 
    258     set_namelist namelist_cfg jpnj 4 
    259     set_namelist namelist_cfg jpnij 32 
     257    set_namelist namelist_cfg jpni 4 
     258    set_namelist namelist_cfg jpnj 2 
     259    set_namelist namelist_cfg jpnij 8 
    260260    if [ ${USING_MPMD} == "yes" ] ; then 
    261261       set_xio_using_server iodef.xml true 
     
    277277    export TEST_NAME="LONG" 
    278278    cd ${CONFIG_DIR0} 
    279     . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3PIS_ST -r ORCA2_LIM3_PISCES -j 8 del_key ${DEL_KEYS} 
     279    . ./makenemo -m ${CMP_NAM} -n ORCA2_LIM3_PISCES_ST -r ORCA2_LIM3_PISCES -j 8 del_key ${DEL_KEYS} 
    280280    cd ${SETTE_DIR} 
    281281    . ./param.cfg 
     
    451451    export TEST_NAME="LONG" 
    452452    cd ${CONFIG_DIR0} 
    453     . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_ST -r ORCA2_OFF_PISCES -j 8 del_key ${DEL_KEYS} 
     453    . ./makenemo -m ${CMP_NAM} -n ORCA2_OFF_PISCES_ST -r ORCA2_OFF_PISCES -j 8 del_key ${DEL_KEYS} 
    454454    cd ${SETTE_DIR} 
    455455    . ./param.cfg 
     
    728728    export TEST_NAME="LONG" 
    729729    cd ${CONFIG_DIR0} 
    730     . ./makenemo -m ${CMP_NAM} -n SAS_ST -r ORCA2_SAS_LIM3 -j 8 del_key ${DEL_KEYS} 
     730    . ./makenemo -m ${CMP_NAM} -n ORCA2_SAS_LIM3_ST -r ORCA2_SAS_LIM3 -j 8 del_key ${DEL_KEYS} 
    731731    cd ${SETTE_DIR} 
    732732    . ./param.cfg 
     
    954954    export TEST_NAME="LONG" 
    955955    cd ${CONFIG_DIR0} 
    956     . ./makenemo -m ${CMP_NAM} -n AGRIF_ST -r AGRIF_NORDIC -j 8 del_key "key_top" 
     956    . ./makenemo -m ${CMP_NAM} -n AGRIF_NORDIC_ST -r AGRIF_NORDIC -j 8 del_key "key_top" 
    957957    cd ${SETTE_DIR} 
    958958    . ./param.cfg 
     
    11351135fi 
    11361136 
    1137 ## test code corruption with AGRIF (phase 2) ==> Compile without key_agrif (to be compared with AGRIF_ST/ORCA2) 
     1137 
     1138## test code corruption with AGRIF (phase 2) ==> Compile without key_agrif (to be compared with AGRIF_NORDIC_ST/ORCA2) 
    11381139if [ ${config} -eq 8 ] ;  then 
    11391140    export TEST_NAME="ORCA2" 
    11401141    cd ${CONFIG_DIR0} 
    1141     . ./makenemo -m ${CMP_NAM} -n AGRIF_ST_NOAGRIF -r AGRIF_NORDIC -j 8 del_key "key_top key_agrif" 
     1142    . ./makenemo -m ${CMP_NAM} -n AGRIF_NORDIC_NOAGRIF_ST -r AGRIF_NORDIC -j 8 del_key "key_top key_agrif" 
    11421143    cd ${SETTE_DIR} 
    11431144    . ./param.cfg 
  • branches/2017/dev_merge_2017/NEMOGCM/SETTE/sette_rpt.sh

    r9518 r9525  
    3535    cd ${TOOLS_DIR}/REBUILD_NEMO 
    3636    #SF echo "REBUILD LONG restart SAS files, without standard output" 
    37     ./rebuild_nemo -t 4 ../../CONFIG/SAS_ST/LONG/SAS_00000240_restart_ice  $NPROC > /dev/null 2>&1 
     37    ./rebuild_nemo -t 4 ../../CONFIG/ORCA2_SAS_LIM3_ST/LONG/SAS_00000240_restart_ice  $NPROC > /dev/null 2>&1 
    3838    #SF echo "REBUILD SHORT restart SAS files, without standard output" 
    39     ./rebuild_nemo -t 4 ../../CONFIG/SAS_ST/SHORT/SAS_00000240_restart_ice $NPROC >&- 
     39    ./rebuild_nemo -t 4 ../../CONFIG/ORCA2_SAS_LIM3_ST/SHORT/SAS_00000240_restart_ice $NPROC >&- 
    4040    cd ${SAS_RESTART_DIR}/LONG 
    4141    #SF echo "COPY rebuild restart files" 
     
    4646    f2o=$vdir/$nam/$mach/$dorv/SHORT/SAS_00000240_restart_ice.nc 
    4747    if  [ ! -f $f1o ] &&  [ ! -f $f2o ] ; then 
    48       printf "%-20s %s\n" $nam " REBUILD SAS restart ice DOES NOT exists; incomplete test"; 
     48      printf "%-27s %s\n" $nam " REBUILD SAS restart ice DOES NOT exists; incomplete test"; 
    4949      return; 
    5050    fi 
     
    7070    if [ $difi == 0 ]; then    
    7171       if [ $pass == 0 ]; then 
    72          printf "%-20s %s %s\n" $nam  " ice restarts are IDENTICAL  passed : " $dorv 
     72         printf "%-27s %s %s\n" $nam  " ice restarts are IDENTICAL  passed : " $dorv 
    7373       fi 
    7474    else 
    75        printf "%-20s %s %s\n" $nam  " ice restarts are DIFFERENT  FAILED : " $dorv  
     75       printf "%-27s %s %s\n" $nam  " ice restarts are DIFFERENT  FAILED : " $dorv  
    7676        # 
    7777   # Offer view of differences on the second pass 
     
    8787    fi 
    8888  else 
    89       printf "%-20s %s\n" $nam " incomplete test"; 
     89      printf "%-27s %s\n" $nam " incomplete test"; 
    9090      return; 
    9191  fi 
     
    114114 
    115115    if  [ ! -f $f1s ] &&  [ ! -f $f1t ] ; then  
    116       printf "%-20s %s\n" $nam " incomplete test"; 
     116      printf "%-27s %s\n" $nam " incomplete test"; 
    117117      return;  
    118118    fi 
    119119    if  [ ! -f $f2s ] &&  [ ! -f $f2t ] ; then  
    120       printf "%-20s %s\n" $nam " incomplete test"; 
     120      printf "%-27s %s\n" $nam " incomplete test"; 
    121121      return;  
    122122    fi 
     
    130130      if [ $? == 0 ]; then 
    131131        if [ $pass == 0 ]; then  
    132           printf "%-20s %s %s\n" $nam  " run.stat    restartability  passed : " $dorv 
     132          printf "%-27s %s %s\n" $nam  " run.stat    restartability  passed : " $dorv 
    133133        fi 
    134134      else 
    135         printf "%-20s %s %s\n" $nam  " run.stat    restartability  FAILED : " $dorv  
     135        printf "%-27s %s %s\n" $nam  " run.stat    restartability  FAILED : " $dorv  
    136136# 
    137137# Offer view of differences on the second pass 
     
    159159      if [ $? == 0 ]; then 
    160160        if [ $pass == 0 ]; then  
    161           printf "%-20s %s %s\n" $nam  " tracer.stat restartability  passed : " $dorv 
     161          printf "%-27s %s %s\n" $nam  " tracer.stat restartability  passed : " $dorv 
    162162        fi 
    163163      else 
    164         printf "%-20s %s %s\n" $nam  " tracer.stat restartability  FAILED : " $dorv  
     164        printf "%-27s %s %s\n" $nam  " tracer.stat restartability  FAILED : " $dorv  
    165165# 
    166166# Offer view of differences on the second pass 
     
    209209 
    210210    if  [ ! -f $f1s ] && [ ! -f $f1t ] ; then  
    211       printf "%-20s %s\n" $nam " incomplete test"; 
     211      printf "%-27s %s\n" $nam " incomplete test"; 
    212212      return;  
    213213    fi 
    214214    if  [ ! -f $f2s ] && [ ! -f $f2t ] ; then  
    215       printf "%-20s %s\n" $nam " incomplete test"; 
     215      printf "%-27s %s\n" $nam " incomplete test"; 
    216216      return;  
    217217    fi 
     
    223223      if [ $? == 0 ]; then 
    224224        if [ $pass == 0 ]; then  
    225           printf "%-20s %s %s\n" $nam  " run.stat    reproducibility passed : " $dorv 
     225          printf "%-27s %s %s\n" $nam  " run.stat    reproducibility passed : " $dorv 
    226226        fi 
    227227      else 
    228         printf "%-20s %s %s\n" $nam  " run.stat    reproducibility FAILED : " $dorv  
     228        printf "%-27s %s %s\n" $nam  " run.stat    reproducibility FAILED : " $dorv  
    229229# 
    230230# Offer view of differences on the second pass 
     
    249249      cmp -s $f1t $f2t 
    250250      if [ $? == 0 ]; then 
    251         if [ $pass == 0 ]; then           printf "%-20s %s %s\n" $nam  " tracer.stat reproducibility passed : " $dorv 
     251        if [ $pass == 0 ]; then           printf "%-27s %s %s\n" $nam  " tracer.stat reproducibility passed : " $dorv 
    252252        fi 
    253253      else 
    254         printf "%-20s %s %s\n" $nam  " tracer.stat reproducibility  FAILED : " $dorv 
     254        printf "%-27s %s %s\n" $nam  " tracer.stat reproducibility  FAILED : " $dorv 
    255255# 
    256256# Offer view of differences on the second pass 
     
    291291    f1o=$vdir/$nam/$mach/$dorv/$rep1/ocean.output 
    292292    if  [ ! -f $f1o ] ; then 
    293       printf "%-20s %s\n" $nam " ocean.output is MISSING : " $dorv 
     293      printf "%-27s %s\n" $nam " ocean.output is MISSING : " $dorv 
    294294      return; 
    295295    else  
    296296      nerr=`grep 'E R R O R' $f1o | wc -l` 
    297297      if [[ $nerr > 0 ]]; then 
    298         printf "%-20s %s %s\n" $nam " run FAILED : " $dorv 
     298        printf "%-27s %s %s\n" $nam " run FAILED : " $dorv 
    299299        if [ $pass == 1 ]; then 
    300300          echo "<return> to view end of ocean.output" 
     
    307307    fi 
    308308  else 
    309     printf "%-20s %s %s\n" $nam  " directory is MISSING : " $dorv 
     309    printf "%-27s %s %s\n" $nam  " directory is MISSING : " $dorv 
    310310  fi 
    311311} 
     
    327327    dorv2=`echo $dorv2 | sed -e 's:.*/::'` 
    328328 
    329 #    rep1=`ls -1rt $vdir/$dir1/$mach/$dorv1/ |  tail -2l | head -1 ` 
    330329    rep1=`ls -1rt $vdir/$dir1/$mach/$dorv1/ |  tail -1l` 
    331     rep2=`ls -1rt $vdir/$dir2/$mach/$dorv2/ |  tail -1l` 
     330#clem    rep2=`ls -1rt $vdir/$dir2/$mach/$dorv2/ |  tail -1l` 
     331    rep2=`ls -1rt $vdir/$dir1/$mach/$dorv1/ |  tail -1l` 
    332332    f1s=$vdir/$dir1/$mach/$dorv1/$rep1/run.stat 
    333333    f2s=$vdir/$dir2/$mach/$dorv2/$rep2/run.stat 
    334334 
    335335    if  [ ! -f $f1s ] && [ ! -f $f2s ] ; then  
    336       printf "%-20s %s\n" $dir1 $dir2 " incomplete test"; 
     336      printf "%-27s %s\n" $dir1 $dir2 " incomplete test"; 
    337337      return;  
    338338    fi 
     
    344344      if [ $? == 0 ]; then 
    345345        if [ $pass == 0 ]; then  
    346           printf "%-20s %s %s %s %s\n" $rep1 $rep2  " AGRIF: run.stat unchanged - test  passed : " $dorv1 $dorv2 
     346          printf "%-5s %s %-5s %s %s %s\n" $rep1 "AGRIF vs" $rep2 "NOAGRIF run.stat    unchanged  -    passed : " $dorv1 $dorv2 
    347347        fi 
    348348      else 
    349         printf "%-20s %s %s %s %s\n" $rep1 $rep2  " AGRIF: run.stat changed - test FAILED : " $dorv1 $dorv2 
     349        printf "%-5s %s %-5s %s %s %s\n" $rep1 "AGRIF vs" $rep2 "NOAGRIF run.stat    changed  -    FAILED : " $dorv1 $dorv2 
    350350# 
    351351# Offer view of differences on the second pass 
     
    362362    fi 
    363363  else 
    364     printf "%-20s %s\n" $dir1 $dir2 " incomplete test"; 
     364    printf "%-27s %s\n" $dir1 $dir2 " incomplete test"; 
    365365  fi 
    366366} 
     
    387387  COMPIL_DIR=${TOOLS_DIR}/COMPILE 
    388388  NPROC=32 
    389   SAS_RESTART_DIR=${CONFIG_DIR0}/SAS_ST 
     389  SAS_RESTART_DIR=${CONFIG_DIR0}/ORCA2_SAS_LIM3_ST 
    390390# 
    391391# Show current revision tag and branch name 
     
    402402do 
    403403# 
    404  if [ $pass == 0 ]; then echo "!!---------------1st pass------------------!!";fi 
    405  if [ $pass == 1 ]; then echo "!!---------------2nd pass------------------!!";fi 
     404 if [ $pass == 0 ]; then  
     405   echo ""  
     406   echo "!!---------------1st pass------------------!!" 
     407 fi 
     408 if [ $pass == 1 ]; then 
     409    echo "" 
     410    echo "!!---------------2nd pass------------------!!" 
     411 fi 
    406412# 
    407413 
    408414# Rebuild and restartability test for SAS 
    409415# clem: not needed anymore 
    410 # for restart_file in WSAS_ST 
     416# for restart_file in WORCA2_SAS_LIM3_ST 
    411417# do 
    412418#   restfile $NEMO_VALID $restart_file $pass 
     
    414420# 
    415421# Restartability test 
     422 echo "" 
    416423 echo "   !----restart----!   " 
    417  for restart_test in WGYREPIS_ST WORCA2LIM3PIS_ST WORCA2OFFPIS_ST WAMM12_ST WSAS_ST WAGRIF_ST WISOMIP_ST WOVERFLOW_ST WLOCK_EXCHANGE_ST WVORTEX_ST WWAD_ST WSAS_BIPER_ST  
     424 for restart_test in WGYRE_PISCES_ST WORCA2_LIM3_PISCES_ST WORCA2_OFF_PISCES_ST WAMM12_ST WORCA2_SAS_LIM3_ST WAGRIF_NORDIC_ST WISOMIP_ST WOVERFLOW_ST WLOCK_EXCHANGE_ST WVORTEX_ST WWAD_ST WSAS_BIPER_ST  
    418425 do 
    419426   resttest $NEMO_VALID $restart_test $pass 
     
    421428# 
    422429# Reproducibility tests 
     430 echo "" 
    423431 echo "   !----repro----!   " 
    424  for repro_test in WGYREPIS_ST WORCA2LIM3PIS_ST WORCA2OFFPIS_ST WAMM12_ST WSAS_ST WORCA2_LIM3_OBS_ST WAGRIF_ST WISOMIP_ST 
     432 for repro_test in WGYRE_PISCES_ST WORCA2_LIM3_PISCES_ST WORCA2_OFF_PISCES_ST WAMM12_ST WORCA2_SAS_LIM3_ST WORCA2_LIM3_OBS_ST WAGRIF_NORDIC_ST WISOMIP_ST 
    425433 do 
    426434   reprotest $NEMO_VALID $repro_test $pass 
     
    429437 
    430438# AGRIF special check to ensure results are unchanged with and without key_agrif 
     439 echo "" 
    431440 echo "   !----agrif check----!   " 
    432  dir1=WAGRIF_ST_NOAGRIF 
    433  dir2=WAGRIF_ST 
     441 dir1=WAGRIF_NORDIC_NOAGRIF_ST 
     442 dir2=WAGRIF_NORDIC_ST 
    434443 identictest $NEMO_VALID $dir1 $dir2 $pass  
    435444 
    436445done 
    437446# 
    438 ## Additional checks for ORCA2AGUL/FIRST standalone AGRIF test 
    439 ## still to be added 
    440  
    441  
    442447 
    443448exit 
Note: See TracChangeset for help on using the changeset viewer.