Skip to content

Commit d5daf29

Browse files
author
guo.2154
committed
WIP: moving ndarray as a separate dependency
1 parent ca97331 commit d5daf29

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2257
-7792
lines changed

CMakeLists.txt

Lines changed: 2 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ file(READ "version.txt" FTK_VERSION)
66
include(GNUInstallDirs)
77
# include (ExternalProject)
88

9+
find_package(ndarray REQUIRED)
10+
911
option (FTK_BUILD_TESTS "Build tests" OFF)
1012
# option (FTK_BUILD_TESTS_XGC "Build XGC-specific tests" OFF)
1113
option (FTK_BUILD_PARAVIEW "Build ParaView plugins" OFF)
@@ -33,25 +35,19 @@ function (ftk_option name description default)
3335
set_property (CACHE FTK_USE_${name} PROPERTY STRINGS "TRUE;AUTO;FALSE")
3436
endfunction ()
3537

36-
ftk_option (ADIOS1 "Use ADIOS1" FALSE) # not recommended
37-
ftk_option (ADIOS2 "Use ADIOS2" FALSE)
3838
ftk_option (Boost "Use Boost" FALSE) # not used
3939
ftk_option (CGAL "Use CGAL" FALSE) # experimental
4040
ftk_option (CUDA "Use CUDA" FALSE) # experimental
4141
ftk_option (DECAF "Use Decaf" FALSE) #experimental
4242
ftk_option (GSL "Use GSL (GNU Scientific Library)" FALSE)
4343
ftk_option (GMP "Use GMP (GNU Multiple Precision Arithmetic Library)" FALSE)
44-
ftk_option (HDF5 "Use HDF5" FALSE)
4544
ftk_option (Kokkos "Use Kokkos" FALSE) # experimental
4645
ftk_option (LevelDB "Use LevelDB" FALSE)
4746
ftk_option (METIS "Use METIS" FALSE)
4847
ftk_option (MPFR "Use MPFR" FALSE)
4948
ftk_option (MPI "Use MPI" FALSE)
5049
ftk_option (MPSolve "Use MPSolve" FALSE)
51-
ftk_option (NETCDF "Use NetCDF" FALSE)
5250
ftk_option (OpenMP "Use OpenMP" FALSE)
53-
ftk_option (PNETCDF "Use parallel-netcdf" FALSE)
54-
ftk_option (PNG "Use PNG" FALSE)
5551
ftk_option (Qt5 "Use Qt5" FALSE)
5652
ftk_option (RocksDB "Use RocksDB" FALSE)
5753
ftk_option (HIPSYCL "Use hipSYCL" FALSE) # experimental
@@ -68,7 +64,6 @@ ftk_option (VTK "Use VTK" FALSE)
6864
set (CMAKE_CXX_STANDARD 17)
6965
set (CMAKE_CXX_STANDARD_REQUIRED ON)
7066

71-
7267
find_package (Threads REQUIRED)
7368

7469
if (FTK_USE_CGAL STREQUAL AUTO)
@@ -83,30 +78,6 @@ if (CGAL_FOUND)
8378
set (FTK_HAVE_CGAL TRUE)
8479
endif ()
8580

86-
if (FTK_USE_ADIOS1 STREQUAL AUTO)
87-
find_package (ADIOS QUIET)
88-
elseif (FTK_USE_ADIOS1)
89-
find_package (ADIOS REQUIRED)
90-
endif ()
91-
if (ADIOS_FOUND)
92-
set (FTK_HAVE_ADIOS1 ON)
93-
include_directories (${ADIOS_INCLUDE_DIRS})
94-
endif ()
95-
96-
if (FTK_USE_ADIOS2 STREQUAL AUTO)
97-
find_package (ADIOS2 QUIET)
98-
elseif (FTK_USE_ADIOS2)
99-
find_package (ADIOS2 REQUIRED)
100-
endif ()
101-
if (ADIOS2_FOUND)
102-
if (ADIOS2_HAVE_MPI)
103-
set (FTK_USE_MPI ON)
104-
endif ()
105-
set (FTK_HAVE_ADIOS2 ON)
106-
# set (ADIOS2_INCLUDE_DIRS ${ADIOS2_DIR}/include)
107-
include_directories (${ADIOS2_INCLUDE_DIRS})
108-
endif ()
109-
11081
if (FTK_USE_VTK STREQUAL AUTO)
11182
find_package (VTK QUIET)
11283
elseif (FTK_USE_VTK)
@@ -174,28 +145,6 @@ else ()
174145
# add_definitions (-DDIY_NO_MPI)
175146
endif ()
176147

177-
if (FTK_USE_HDF5 STREQUAL AUTO)
178-
find_package (HDF5 QUIET)
179-
elseif (FTK_USE_HDF5)
180-
find_package (HDF5 REQUIRED)
181-
endif()
182-
if (HDF5_FOUND)
183-
set (FTK_HAVE_HDF5 TRUE)
184-
include_directories (${HDF5_INCLUDE_DIRS})
185-
endif ()
186-
187-
if (FTK_USE_NETCDF STREQUAL AUTO)
188-
find_package (netCDF QUIET)
189-
elseif (FTK_USE_NETCDF)
190-
find_package (netCDF REQUIRED)
191-
endif ()
192-
if (netCDF_FOUND)
193-
set (FTK_HAVE_NETCDF TRUE)
194-
# include_directories (${NETCDF_INCLUDE_DIR})
195-
# install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindNetCDF.cmake
196-
# DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/FTK/)
197-
endif ()
198-
199148
if (FTK_USE_MPSolve STREQUAL AUTO)
200149
find_package (MPSolve QUIET)
201150
elseif (FTK_USE_MPSolve)
@@ -252,26 +201,6 @@ if (TBB_FOUND)
252201
include_directories (${TBB_INCLUDE_DIRS})
253202
endif ()
254203

255-
if (FTK_USE_PNETCDF STREQUAL AUTO)
256-
find_package (PNetCDF QUIET)
257-
elseif (FTK_USE_PNETCDF)
258-
find_package (PNetCDF REQUIRED)
259-
endif()
260-
if (PNETCDF_FOUND)
261-
set (FTK_HAVE_PNETCDF TRUE)
262-
include_directories (${PNETCDF_INCLUDE_DIR})
263-
endif ()
264-
265-
if (FTK_USE_PNG STREQUAL AUTO)
266-
find_package (PNG QUIET)
267-
elseif (FTK_USE_PNG)
268-
find_package (PNG REQUIRED)
269-
endif ()
270-
if (PNG_FOUND)
271-
set (FTK_HAVE_PNG TRUE)
272-
include_directories (${PNG_INCLUDE_DIRS})
273-
endif ()
274-
275204
if (FTK_USE_RocksDB STREQUAL AUTO)
276205
find_package (RocksDB QUIET)
277206
elseif (FTK_USE_RocksDB)
@@ -469,13 +398,6 @@ if (${GMP_FOUND})
469398
message(" Include path: ${GMP_INCLUDE_DIRS}")
470399
message(" Libraries: ${GMP_LIBRARIES}")
471400
endif()
472-
message(" HDF5: ${FTK_USE_HDF5} ${HDF5_FOUND}")
473-
if (${FTK_HAVE_HDF5})
474-
message(" Version: ${HDF5_VERSION}")
475-
message(" Include path: ${HDF5_INCLUDE_DIRS}")
476-
message(" Definitions: ${HDF5_DEFINITIONS}")
477-
message(" Libraries: ${HDF5_LIBRARIES}")
478-
endif ()
479401
message(" hipSYCL* ${FTK_USE_HIPSYCL} ${HIPSYCL_FOUND}")
480402
if (${FTK_HAVE_HIPSYCL})
481403
message(" SYCLCC: ${HIPSYCL_SYCLCC}")
@@ -499,11 +421,6 @@ if (${FTK_HAVE_MPI})
499421
message(" mpiexec: ${MPIEXEC_EXECUTABLE}")
500422
endif ()
501423
message(" MPSolve: ${FTK_USE_MPSolve} ${MPSolve_FOUND}")
502-
message(" netCDF: ${FTK_USE_NETCDF} ${NETCDF_FOUND}")
503-
if (${FTK_HAVE_NETCDF})
504-
message(" Version: ${NetCDFVersion}")
505-
message(" Path: ${netCDF_INSTALL_PREFIX}")
506-
endif ()
507424
message(" OpenMP*: ${FTK_USE_OpenMP} ${OpenMP_CXX_FOUND}")
508425
if (${FTK_HAVE_OPENMP})
509426
message(" Version: ${OpenMP_CXX_VERSION}")
@@ -514,15 +431,6 @@ message(" ParaView: ${FTK_BUILD_PARAVIEW}")
514431
if (${FTK_HAVE_PARAVIEW})
515432
message(" ParaView path: ${ParaView_DIR}")
516433
endif ()
517-
message(" PNETCDF*: ${FTK_USE_PNETCDF} ${PNetCDF_FOUND}")
518-
if (${FTK_HAVE_PNETCDF})
519-
message(" Include path: ${PNETCDF_INCLUDE_DIR}")
520-
message(" Library: ${PNETCDF_LIBRARY}")
521-
endif ()
522-
message(" PNG: ${FTK_USE_PNG} ${PNG_FOUND}")
523-
if (${FTK_HAVE_PNG})
524-
message(" Library: ${PNG_LIBRARY}")
525-
endif()
526434
message(" Qt5: ${FTK_USE_Qt5} ${FTK_HAVE_QT5}")
527435
if (${FTK_HAVE_QT5})
528436
message(" Qt5OpenGL: ${Qt5OpenGL_DIR}")

include/ftk/algorithms/hoshen_kopelman.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef _FTK_CCL2D_HH
22
#define _FTK_CCL2D_HH
33

4-
#include <ftk/ndarray.hh>
4+
#include <ndarray/ndarray.hh>
55

66
namespace ftk {
77

include/ftk/basic/kd.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define _FTK_KD_HH
33

44
#include <ftk/config.hh>
5-
#include <ftk/ndarray.hh>
5+
#include <ndarray/ndarray.hh>
66
#include <vector>
77
#include <list>
88

include/ftk/basic/murmurhash2.hh

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)