Skip to content

Commit

Permalink
#3012 Added search_3d_kdtree.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed Nov 19, 2024
1 parent 0d911b2 commit acaf115
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 8 deletions.
21 changes: 20 additions & 1 deletion internal/test_util/libcode/vx_grid/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ include ${top_srcdir}/Make-include

# Test programs

noinst_PROGRAMS = test_grid_area
noinst_PROGRAMS = test_grid_area \
search_3d_kdtree

test_grid_area_SOURCES = test_grid_area.cc
test_grid_area_CPPFLAGS = ${MET_CPPFLAGS}
Expand All @@ -27,3 +28,21 @@ test_grid_area_LDADD = \
-lvx_log \
$(UGRID_DEP_LIBS) \
-lz -lm -lproj

search_3d_kdtree_SOURCES = search_3d_kdtree.cc
search_3d_kdtree_CPPFLAGS = ${MET_CPPFLAGS}
search_3d_kdtree_LDFLAGS = -L. ${MET_LDFLAGS}
search_3d_kdtree_LDADD = \
$(UGRID_MET_LIBS) \
-lvx_nc_util \
-lvx_grid \
-lvx_geodesy \
-lvx_nav \
-lvx_util_math \
-lvx_util \
-lvx_math \
-lvx_cal \
-lvx_log \
$(UGRID_DEP_LIBS) \
-lz -lm -lproj \
-lnetcdf_c++4 -lnetcdf
62 changes: 55 additions & 7 deletions internal/test_util/libcode/vx_grid/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
noinst_PROGRAMS = test_grid_area$(EXEEXT)
noinst_PROGRAMS = test_grid_area$(EXEEXT) search_3d_kdtree$(EXEEXT)
subdir = internal/test_util/libcode/vx_grid
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
Expand All @@ -100,9 +100,16 @@ CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
PROGRAMS = $(noinst_PROGRAMS)
am_search_3d_kdtree_OBJECTS = \
search_3d_kdtree-search_3d_kdtree.$(OBJEXT)
search_3d_kdtree_OBJECTS = $(am_search_3d_kdtree_OBJECTS)
am__DEPENDENCIES_1 =
search_3d_kdtree_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1)
search_3d_kdtree_LINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
$(search_3d_kdtree_LDFLAGS) $(LDFLAGS) -o $@
am_test_grid_area_OBJECTS = test_grid_area-test_grid_area.$(OBJEXT)
test_grid_area_OBJECTS = $(am_test_grid_area_OBJECTS)
am__DEPENDENCIES_1 =
test_grid_area_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1)
test_grid_area_LINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
Expand All @@ -122,7 +129,9 @@ am__v_at_1 =
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__maybe_remake_depfiles = depfiles
am__depfiles_remade = ./$(DEPDIR)/test_grid_area-test_grid_area.Po
am__depfiles_remade = \
./$(DEPDIR)/search_3d_kdtree-search_3d_kdtree.Po \
./$(DEPDIR)/test_grid_area-test_grid_area.Po
am__mv = mv -f
AM_V_lt = $(am__v_lt_@AM_V@)
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
Expand All @@ -141,8 +150,8 @@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
am__v_CXXLD_0 = @echo " CXXLD " $@;
am__v_CXXLD_1 =
SOURCES = $(test_grid_area_SOURCES)
DIST_SOURCES = $(test_grid_area_SOURCES)
SOURCES = $(search_3d_kdtree_SOURCES) $(test_grid_area_SOURCES)
DIST_SOURCES = $(search_3d_kdtree_SOURCES) $(test_grid_area_SOURCES)
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
Expand Down Expand Up @@ -343,6 +352,24 @@ test_grid_area_LDADD = \
$(UGRID_DEP_LIBS) \
-lz -lm -lproj

search_3d_kdtree_SOURCES = search_3d_kdtree.cc
search_3d_kdtree_CPPFLAGS = ${MET_CPPFLAGS}
search_3d_kdtree_LDFLAGS = -L. ${MET_LDFLAGS}
search_3d_kdtree_LDADD = \
$(UGRID_MET_LIBS) \
-lvx_nc_util \
-lvx_grid \
-lvx_geodesy \
-lvx_nav \
-lvx_util_math \
-lvx_util \
-lvx_math \
-lvx_cal \
-lvx_log \
$(UGRID_DEP_LIBS) \
-lz -lm -lproj \
-lnetcdf_c++4 -lnetcdf

all: all-am

.SUFFIXES:
Expand Down Expand Up @@ -380,6 +407,10 @@ $(am__aclocal_m4_deps):
clean-noinstPROGRAMS:
-test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)

search_3d_kdtree$(EXEEXT): $(search_3d_kdtree_OBJECTS) $(search_3d_kdtree_DEPENDENCIES) $(EXTRA_search_3d_kdtree_DEPENDENCIES)
@rm -f search_3d_kdtree$(EXEEXT)
$(AM_V_CXXLD)$(search_3d_kdtree_LINK) $(search_3d_kdtree_OBJECTS) $(search_3d_kdtree_LDADD) $(LIBS)

test_grid_area$(EXEEXT): $(test_grid_area_OBJECTS) $(test_grid_area_DEPENDENCIES) $(EXTRA_test_grid_area_DEPENDENCIES)
@rm -f test_grid_area$(EXEEXT)
$(AM_V_CXXLD)$(test_grid_area_LINK) $(test_grid_area_OBJECTS) $(test_grid_area_LDADD) $(LIBS)
Expand All @@ -390,6 +421,7 @@ mostlyclean-compile:
distclean-compile:
-rm -f *.tab.c

@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/search_3d_kdtree-search_3d_kdtree.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_grid_area-test_grid_area.Po@am__quote@ # am--include-marker

$(am__depfiles_remade):
Expand All @@ -412,6 +444,20 @@ am--depfiles: $(am__depfiles_remade)
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`

search_3d_kdtree-search_3d_kdtree.o: search_3d_kdtree.cc
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(search_3d_kdtree_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT search_3d_kdtree-search_3d_kdtree.o -MD -MP -MF $(DEPDIR)/search_3d_kdtree-search_3d_kdtree.Tpo -c -o search_3d_kdtree-search_3d_kdtree.o `test -f 'search_3d_kdtree.cc' || echo '$(srcdir)/'`search_3d_kdtree.cc
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/search_3d_kdtree-search_3d_kdtree.Tpo $(DEPDIR)/search_3d_kdtree-search_3d_kdtree.Po
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='search_3d_kdtree.cc' object='search_3d_kdtree-search_3d_kdtree.o' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(search_3d_kdtree_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o search_3d_kdtree-search_3d_kdtree.o `test -f 'search_3d_kdtree.cc' || echo '$(srcdir)/'`search_3d_kdtree.cc

search_3d_kdtree-search_3d_kdtree.obj: search_3d_kdtree.cc
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(search_3d_kdtree_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT search_3d_kdtree-search_3d_kdtree.obj -MD -MP -MF $(DEPDIR)/search_3d_kdtree-search_3d_kdtree.Tpo -c -o search_3d_kdtree-search_3d_kdtree.obj `if test -f 'search_3d_kdtree.cc'; then $(CYGPATH_W) 'search_3d_kdtree.cc'; else $(CYGPATH_W) '$(srcdir)/search_3d_kdtree.cc'; fi`
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/search_3d_kdtree-search_3d_kdtree.Tpo $(DEPDIR)/search_3d_kdtree-search_3d_kdtree.Po
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='search_3d_kdtree.cc' object='search_3d_kdtree-search_3d_kdtree.obj' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(search_3d_kdtree_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o search_3d_kdtree-search_3d_kdtree.obj `if test -f 'search_3d_kdtree.cc'; then $(CYGPATH_W) 'search_3d_kdtree.cc'; else $(CYGPATH_W) '$(srcdir)/search_3d_kdtree.cc'; fi`

test_grid_area-test_grid_area.o: test_grid_area.cc
@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_grid_area_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT test_grid_area-test_grid_area.o -MD -MP -MF $(DEPDIR)/test_grid_area-test_grid_area.Tpo -c -o test_grid_area-test_grid_area.o `test -f 'test_grid_area.cc' || echo '$(srcdir)/'`test_grid_area.cc
@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_grid_area-test_grid_area.Tpo $(DEPDIR)/test_grid_area-test_grid_area.Po
Expand Down Expand Up @@ -550,7 +596,8 @@ clean: clean-am
clean-am: clean-generic clean-noinstPROGRAMS mostlyclean-am

distclean: distclean-am
-rm -f ./$(DEPDIR)/test_grid_area-test_grid_area.Po
-rm -f ./$(DEPDIR)/search_3d_kdtree-search_3d_kdtree.Po
-rm -f ./$(DEPDIR)/test_grid_area-test_grid_area.Po
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
Expand Down Expand Up @@ -596,7 +643,8 @@ install-ps-am:
installcheck-am:

maintainer-clean: maintainer-clean-am
-rm -f ./$(DEPDIR)/test_grid_area-test_grid_area.Po
-rm -f ./$(DEPDIR)/search_3d_kdtree-search_3d_kdtree.Po
-rm -f ./$(DEPDIR)/test_grid_area-test_grid_area.Po
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic

Expand Down

0 comments on commit acaf115

Please sign in to comment.