Changeset 14206
- Timestamp:
- 2020-12-17T20:26:41+01:00 (4 years ago)
- Location:
- utils/CI/sette_wave
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/CI/sette_wave/sette.sh
r13887 r14206 4 4 MAIN_DIR=$(dirname $SETTE_DIR) 5 5 export SETTE_TIMING='no' 6 export NOT_USING_QCO='no' 6 7 7 8 # Parse command-line arguments 8 9 if [ $# -gt 0 ]; then 9 while getopts t:x:cshT option; do10 while getopts t:x:cshTq option; do 10 11 case $option in 11 12 c) export SETTE_CLEAN_CONFIGS='yes' … … 32 33 echo "ln_timing will be set to true" 33 34 echo "";; 35 q) export NOT_USING_QCO='yes' 36 echo "" 37 echo "key_qco and key_linssh will NOT be activated" 38 echo "";; 34 39 h | *) echo 'sette.sh with no arguments (in this case all configuration will be tested)' 35 40 echo '-t "CFG1_to_test CFG2_to_test ..." to test some specific configurations' … … 37 42 echo '-T to set ln_timing true for all non-AGRIF configurations' 38 43 echo '-c to clean each configuration' 44 echo '-q run without qco environment' 39 45 echo '-s to synchronise the sette MY_SRC and EXP00 with the reference MY_SRC and EXPREF'; exit 42 ;; 40 46 esac -
utils/CI/sette_wave/sette_reference-configurations.sh
r13990 r14206 137 137 then 138 138 export ADD_KEYS="${ADD_KEYS} key_loop_fusion" 139 fi 140 # 141 if [ ${NOT_USING_QCO} == "yes" ] 142 then 143 export DEL_KEYS="${DEL_KEYS} key_qco key_linssh" 139 144 fi 140 145 # -
utils/CI/sette_wave/sette_rpt.sh
r13795 r14206 492 492 echo "" 493 493 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 495 495 do 496 496 resttest $NEMO_VALID $restart_test $pass … … 500 500 echo "" 501 501 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 503 503 do 504 504 reprotest $NEMO_VALID $repro_test $pass … … 527 527 echo "REFERENCE directory : $NEMO_VALID_REF at rev $NEMO_REV_REF" 528 528 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 530 530 do 531 531 runcmpres $NEMO_VALID $repro_test $NEMO_VALID_REF $NEMO_REV_REF $pass -
utils/CI/sette_wave/sette_test-cases.sh
r13943 r14206 135 135 export ADD_KEYS="${ADD_KEYS} key_loop_fusion" 136 136 fi 137 # 138 if [ ${NOT_USING_QCO} == "yes" ] 139 then 140 export DEL_KEYS="${DEL_KEYS} key_qco key_linssh" 141 fi 142 # 137 143 # Settings which control the use of stand alone servers (only relevant if using xios) 138 144 # … … 944 950 fi 945 951 952 953 # --------- 954 # SWG 955 # --------- 956 if [ ${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} 1035 fi 1036 1037 if [ ${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 1103 fi 1104 1105 1106 946 1107 #---- 947 1108 done
Note: See TracChangeset
for help on using the changeset viewer.