File tree Expand file tree Collapse file tree 3 files changed +65
-0
lines changed Expand file tree Collapse file tree 3 files changed +65
-0
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,18 @@ teca_add_app_test(test_tc_trajectory_app
184184 ${CMAKE_BINARY_DIR} /${BIN_PREFIX} ${TECA_DATA_ROOT}
185185 REQ_TECA_DATA)
186186
187+ teca_add_app_test(test_detect_nodes_app teca_detect_nodes
188+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR} /test_detect_nodes_app.sh
189+ ${CMAKE_BINARY_DIR} /${BIN_PREFIX} ${TECA_DATA_ROOT}
190+ FEATURES ${TECA_HAS_TELITE} ${TECA_HAS_NETCDF}
191+ REQ_TECA_DATA)
192+
193+ teca_add_app_test(test_detect_nodes_app_mcf teca_detect_nodes
194+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR} /test_detect_nodes_app_mcf.sh
195+ ${CMAKE_BINARY_DIR} /${BIN_PREFIX} ${TECA_DATA_ROOT}
196+ FEATURES ${TECA_HAS_TELITE} ${TECA_HAS_NETCDF}
197+ REQ_TECA_DATA)
198+
187199teca_add_app_test(test_tc_wind_radii_app_serial
188200 teca_tc_wiind_radii
189201 COMMAND ${CMAKE_CURRENT_SOURCE_DIR} /test_tc_wind_radii_app.sh
@@ -803,6 +815,7 @@ set(app_names
803815 teca_tc_wind_radii_stats
804816 teca_temporal_reduction
805817 teca_cpp_temporal_reduction
818+ teca_detect_nodes
806819 teca_lapse_rate)
807820
808821foreach (app_name ${app_names} )
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ if [[ $# < 2 ]]
4+ then
5+ echo " usage: test_detect_nodes_app.sh [app prefix] [data root] " \
6+ " [mpi exec] [test cores]"
7+ exit -1
8+ fi
9+
10+ app_prefix=${1}
11+ data_root=${2}
12+
13+ if [[ $# -eq 4 ]]
14+ then
15+ mpi_exec=${3}
16+ test_cores=${4}
17+ launcher=" ${mpi_exec} -n ${test_cores} "
18+ fi
19+
20+ set -x
21+
22+ # run the app
23+ ${launcher} ${app_prefix} /teca_detect_nodes \
24+ --input_regex " ${data_root} /test_tc_candidates_1990_07_0[12]\.nc" \
25+ --sea_level_pressure PSL --500mb_height Z1000 --300mb_height Z200 \
26+ --surface_wind_u UBOT --surface_wind_v VBOT
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ if [[ $# < 2 ]]
4+ then
5+ echo " usage: test_tc_detect_app.sh [app prefix] [data root] " \
6+ " [mpi exec] [test cores]"
7+ exit -1
8+ fi
9+
10+ app_prefix=${1}
11+ data_root=${2}
12+
13+ if [[ $# -eq 4 ]]
14+ then
15+ mpi_exec=${3}
16+ test_cores=${4}
17+ launcher=" ${mpi_exec} -n ${test_cores} "
18+ fi
19+
20+ set -x
21+
22+ # run the app
23+ ${launcher} ${app_prefix} /teca_detect_nodes \
24+ --input_file " ${app_prefix} /../test/HighResMIP_TC_test.mcf" \
25+ --sea_level_pressure PSL --500mb_height Z1000 --300mb_height Z200 \
26+ --surface_wind_u UBOT --surface_wind_v VBOT
You can’t perform that action at this time.
0 commit comments