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 14206 for utils – NEMO

Changeset 14206 for utils


Ignore:
Timestamp:
2020-12-17T20:26:41+01:00 (3 years ago)
Author:
techene
Message:

add SWG to sette with key_qco only, add a -q option to run with NO vertical key (key_linssh, key_qco)

Location:
utils/CI/sette_wave
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • utils/CI/sette_wave/sette.sh

    r13887 r14206  
    44MAIN_DIR=$(dirname $SETTE_DIR) 
    55export SETTE_TIMING='no' 
     6export NOT_USING_QCO='no' 
    67 
    78# Parse command-line arguments 
    89if [ $# -gt 0 ]; then 
    9   while getopts t:x:cshT option; do  
     10  while getopts t:x:cshTq option; do  
    1011     case $option in 
    1112        c) export SETTE_CLEAN_CONFIGS='yes' 
     
    3233           echo "ln_timing will be set to true" 
    3334           echo "";; 
     35   q) export NOT_USING_QCO='yes' 
     36           echo "" 
     37           echo "key_qco and key_linssh will NOT be activated" 
     38           echo "";; 
    3439        h | *) echo 'sette.sh with no arguments (in this case all configuration will be tested)' 
    3540               echo '-t "CFG1_to_test CFG2_to_test ..." to test some specific configurations' 
     
    3742               echo '-T to set ln_timing true for all non-AGRIF configurations' 
    3843               echo '-c to clean each configuration' 
     44               echo '-q run without qco environment' 
    3945               echo '-s to synchronise the sette MY_SRC and EXP00 with the reference MY_SRC and EXPREF'; exit 42 ;; 
    4046     esac 
  • utils/CI/sette_wave/sette_reference-configurations.sh

    r13990 r14206  
    137137 then 
    138138   export ADD_KEYS="${ADD_KEYS} key_loop_fusion" 
     139fi 
     140# 
     141if [ ${NOT_USING_QCO} == "yes" ] 
     142 then 
     143   export DEL_KEYS="${DEL_KEYS} key_qco key_linssh" 
    139144fi 
    140145# 
  • utils/CI/sette_wave/sette_rpt.sh

    r13795 r14206  
    492492 echo "" 
    493493 echo "   !----restart----!   " 
    494  for restart_test in WGYRE_PISCES_ST WORCA2_ICE_PISCES_ST WORCA2_OFF_PISCES_ST WAMM12_ST WORCA2_SAS_ICE_ST WAGRIF_DEMO_ST WWED025_ST WISOMIP+_ST WOVERFLOW_ST WLOCK_EXCHANGE_ST WVORTEX_ST WICE_AGRIF_ST  
     494 for restart_test in WGYRE_PISCES_ST WORCA2_ICE_PISCES_ST WORCA2_OFF_PISCES_ST WAMM12_ST WORCA2_SAS_ICE_ST WAGRIF_DEMO_ST WWED025_ST WISOMIP+_ST WOVERFLOW_ST WLOCK_EXCHANGE_ST WVORTEX_ST WICE_AGRIF_ST WSWG_ST 
    495495 do 
    496496   resttest $NEMO_VALID $restart_test $pass 
     
    500500 echo "" 
    501501 echo "   !----repro----!   " 
    502  for repro_test in WGYRE_PISCES_ST WORCA2_ICE_PISCES_ST WORCA2_OFF_PISCES_ST WAMM12_ST WORCA2_SAS_ICE_ST WORCA2_ICE_OBS_ST WAGRIF_DEMO_ST WWED025_ST WISOMIP+_ST WVORTEX_ST WICE_AGRIF_ST 
     502 for repro_test in WGYRE_PISCES_ST WORCA2_ICE_PISCES_ST WORCA2_OFF_PISCES_ST WAMM12_ST WORCA2_SAS_ICE_ST WORCA2_ICE_OBS_ST WAGRIF_DEMO_ST WWED025_ST WISOMIP+_ST WVORTEX_ST WICE_AGRIF_ST WSWG_ST 
    503503 do 
    504504   reprotest $NEMO_VALID $repro_test $pass 
     
    527527     echo "REFERENCE directory : $NEMO_VALID_REF at rev $NEMO_REV_REF" 
    528528     echo '' 
    529      for repro_test in WGYRE_PISCES_ST WORCA2_ICE_PISCES_ST WORCA2_OFF_PISCES_ST WAMM12_ST WORCA2_SAS_ICE_ST WAGRIF_DEMO_ST WWED025_ST WISOMIP+_ST WVORTEX_ST WICE_AGRIF_ST WOVERFLOW_ST WLOCK_EXCHANGE_ST 
     529     for repro_test in WGYRE_PISCES_ST WORCA2_ICE_PISCES_ST WORCA2_OFF_PISCES_ST WAMM12_ST WORCA2_SAS_ICE_ST WAGRIF_DEMO_ST WWED025_ST WISOMIP+_ST WVORTEX_ST WICE_AGRIF_ST WOVERFLOW_ST WLOCK_EXCHANGE_ST WSWG_ST 
    530530     do 
    531531       runcmpres $NEMO_VALID $repro_test $NEMO_VALID_REF $NEMO_REV_REF $pass 
  • utils/CI/sette_wave/sette_test-cases.sh

    r13943 r14206  
    135135   export ADD_KEYS="${ADD_KEYS} key_loop_fusion" 
    136136fi 
     137# 
     138if [ ${NOT_USING_QCO} == "yes" ] 
     139 then 
     140   export DEL_KEYS="${DEL_KEYS} key_qco key_linssh" 
     141fi 
     142# 
    137143# Settings which control the use of stand alone servers (only relevant if using xios) 
    138144# 
     
    944950fi 
    945951 
     952 
     953# --------- 
     954# SWG 
     955# --------- 
     956if [ ${config} == "SWG" ] && [ ${DO_RESTART} == "1" ] && [ ${NOT_USING_QCO} == "no" ] ;  then 
     957## Restartability tests for SWG 
     958    if [ $( echo ${CMP_NAM} | grep -ic debug ) -eq 1 ] 
     959    then 
     960   ITEND=12 
     961    else 
     962   ITEND=1728 
     963    fi 
     964    ITRST=$(   printf "%08d" $(( ${ITEND} / 2 )) ) 
     965    export TEST_NAME="LONG" 
     966    cd ${MAIN_DIR} 
     967    # 
     968    # syncronisation if target directory/file exist (not done by makenemo) 
     969    . ${SETTE_DIR}/all_functions.sh 
     970    # 
     971    clean_config SWG SWG_ST 'tests' 
     972    # 
     973    sync_config  SWG SWG_ST 'tests' 
     974    # 
     975    . ./makenemo -m ${CMP_NAM} -n SWG_ST -a SWG -j 8  add_key "${ADD_KEYS}" del_key "${DEL_KEYS}" 
     976    cd ${SETTE_DIR} 
     977    . ./param.cfg 
     978    . ./all_functions.sh 
     979    . ./prepare_exe_dir.sh 
     980    set_valid_dir 
     981    clean_valid_dir 
     982    JOB_FILE=${EXE_DIR}/run_job.sh 
     983    NPROC=1 
     984    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi  
     985    cd ${EXE_DIR} 
     986    set_namelist namelist_cfg cn_exp \"SWG_LONG\" 
     987    set_namelist namelist_cfg nn_it000 1 
     988    set_namelist namelist_cfg nn_itend ${ITEND} 
     989    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
     990    set_namelist namelist_cfg sn_cfctl%l_runstat .true.   
     991    
     992    #if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
     993    if [ ${USING_MPMD} == "yes" ] ; then 
     994        set_xio_using_server iodef.xml true 
     995    else 
     996        set_xio_using_server iodef.xml false 
     997    fi 
     998    cd ${SETTE_DIR} 
     999    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
     1000     
     1001    cd ${SETTE_DIR} 
     1002    export TEST_NAME="SHORT" 
     1003    . ./prepare_exe_dir.sh 
     1004    set_valid_dir 
     1005    clean_valid_dir 
     1006    cd ${EXE_DIR} 
     1007    set_namelist namelist_cfg cn_exp \"SWG_SHORT\" 
     1008    set_namelist namelist_cfg nn_it000 $(( ${ITEND} / 2 + 1 )) 
     1009    set_namelist namelist_cfg nn_itend ${ITEND} 
     1010    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
     1011    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
     1012    set_namelist namelist_cfg ln_rstart .true. 
     1013    set_namelist namelist_cfg nn_rstctl 2 
     1014    set_namelist namelist_cfg cn_ocerst_in \"SWG_LONG_${ITRST}_restart\" 
     1015       
     1016    #if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
     1017    if [ ${USING_MPMD} == "yes" ] ; then 
     1018        set_xio_using_server iodef.xml true 
     1019    else 
     1020        set_xio_using_server iodef.xml false 
     1021    fi 
     1022    if [ $NPROC -eq 1 ] ;  then 
     1023        ln -sf ../LONG/SWG_LONG_${ITRST}_restart.nc . 
     1024    else 
     1025        for (( i=1; i<=$NPROC; i++)) ; do 
     1026            L_NPROC=$(( $i - 1 )) 
     1027            L_NPROC=`printf "%04d\n" ${L_NPROC}` 
     1028            ln -sf ../LONG/SWG_LONG_${ITRST}_restart_${L_NPROC}.nc . 
     1029        done 
     1030    fi 
     1031    cd ${SETTE_DIR} 
     1032    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
     1033    cd ${SETTE_DIR} 
     1034    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     1035fi 
     1036 
     1037if [ ${config} == "SWG" ] && [ ${DO_REPRO} == "1" ] && [ ${NOT_USING_QCO} == "no" ] ;  then 
     1038 
     1039## Reproducibility tests for SWG 
     1040    export TEST_NAME="REPRO_2_3" 
     1041    cd ${MAIN_DIR} 
     1042    cd ${SETTE_DIR} 
     1043    . ./param.cfg 
     1044    . ./all_functions.sh 
     1045    . ./prepare_exe_dir.sh 
     1046    set_valid_dir 
     1047    clean_valid_dir 
     1048    JOB_FILE=${EXE_DIR}/run_job.sh 
     1049    NPROC=6 
     1050    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     1051    cd ${EXE_DIR} 
     1052    set_namelist namelist_cfg cn_exp \"SWG_23\" 
     1053    set_namelist namelist_cfg nn_it000 1 
     1054    set_namelist namelist_cfg nn_itend ${ITEND} 
     1055    set_namelist namelist_cfg nn_stock ${ITEND} 
     1056    set_namelist namelist_cfg jpni 2 
     1057    set_namelist namelist_cfg jpnj 3 
     1058    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
     1059    set_namelist namelist_cfg sn_cfctl%l_prtctl .true. 
     1060    
     1061 
     1062    #if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
     1063    if [ ${USING_MPMD} == "yes" ] ; then 
     1064       set_xio_using_server iodef.xml true 
     1065    else 
     1066       set_xio_using_server iodef.xml false 
     1067    fi 
     1068    cd ${SETTE_DIR} 
     1069    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
     1070    cd ${SETTE_DIR} 
     1071    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     1072 
     1073    cd ${SETTE_DIR} 
     1074    export TEST_NAME="REPRO_3_2" 
     1075    . ./prepare_exe_dir.sh 
     1076    set_valid_dir 
     1077    clean_valid_dir 
     1078    JOB_FILE=${EXE_DIR}/run_job.sh 
     1079    NPROC=6 
     1080    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     1081    cd ${EXE_DIR} 
     1082 
     1083    set_namelist namelist_cfg cn_exp \"SWG_32\" 
     1084    set_namelist namelist_cfg nn_it000 1 
     1085    set_namelist namelist_cfg nn_itend ${ITEND} 
     1086    set_namelist namelist_cfg nn_stock ${ITEND} 
     1087    set_namelist namelist_cfg jpni 3 
     1088    set_namelist namelist_cfg jpnj 2 
     1089    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
     1090    set_namelist namelist_cfg sn_cfctl%l_prtctl .true. 
     1091 
     1092    #if [ ${SETTE_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
     1093    if [ ${USING_MPMD} == "yes" ] ; then 
     1094       set_xio_using_server iodef.xml true 
     1095    else 
     1096       set_xio_using_server iodef.xml false 
     1097    fi 
     1098    cd ${SETTE_DIR} 
     1099    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
     1100    cd ${SETTE_DIR} 
     1101    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     1102 
     1103fi 
     1104 
     1105 
     1106 
    9461107#---- 
    9471108done 
Note: See TracChangeset for help on using the changeset viewer.