@@ -7,6 +7,7 @@ include(CMakePackageConfigHelpers)
77
88option (MeshFields_USE_Cabana "Build with the Cabana storage backend" OFF )
99
10+ find_package (Kokkos REQUIRED)
1011find_package (Omega_h REQUIRED)
1112#Clear the omegah compilation flags that it passes to cuda. Using the
1213# kokkos target, and nvcc_wrapper, provide sufficient flags.
@@ -17,11 +18,14 @@ if(MeshFields_USE_Cabana)
1718endif ()
1819
1920set (MESHFIELD_HEADERS
21+ src/MeshField_Defines.hpp
2022 src/MeshField_Utility.hpp
2123 src/MeshField_Macros.hpp
2224 src/KokkosController.hpp
2325 src/MeshField_Element.hpp
26+ src/MeshField_Integrate.hpp
2427 src/MeshField_Shape.hpp
28+ src/MeshField_ShapeField.hpp
2529 src/MeshField_Fail.hpp
2630 src/MeshField_For.hpp
2731 src/MeshField_Reduce.hpp
@@ -42,12 +46,13 @@ set(MESHFIELD_SOURCES
4246
4347add_library (meshfields ${MESHFIELD_SOURCES} )
4448
45- target_compile_features (meshfields INTERFACE cxx_std_17 )
49+ target_compile_features (meshfields INTERFACE cxx_std_20 )
4650target_include_directories (meshfields
4751 PUBLIC
4852 "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR} >" # for MeshField_Config.hpp
4953 "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /src>"
5054 "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR} >" )
55+ target_link_libraries (meshfields INTERFACE Kokkos::kokkos)
5156target_link_libraries (meshfields INTERFACE Omega_h::omega_h)
5257if (Kokkos_ENABLE_CUDA)
5358 target_compile_options (meshfields INTERFACE "--expt-relaxed-constexpr" )
@@ -159,8 +164,10 @@ endfunction()
159164meshfields_add_exe(KokkosTests test /testKokkos.cpp)
160165meshfields_add_exe(SerializationTests test /testSerialize.cpp)
161166meshfields_add_exe(ElementTests test /testElement.cpp)
167+ meshfields_add_exe(ElementJacobian1d test /testElementJacobian1d.cpp)
168+ meshfields_add_exe(ElementJacobian2d test /testElementJacobian2d.cpp)
169+ meshfields_add_exe(CountIntegrator test /testCountIntegrator.cpp)
162170meshfields_add_exe(OmegahElementTests test /testOmegahElement.cpp)
163- meshfields_add_exe(OmegahCoordFieldTest test /testOmegahCoordField.cpp)
164171meshfields_add_exe(ExceptionTest test /testExceptions.cpp)
165172
166173if (MeshFields_USE_Cabana)
@@ -173,8 +180,10 @@ endif()
173180test_func(KokkosTests ./KokkosTests)
174181test_func(SerializationTests ./SerializationTests)
175182test_func(ElementTests ./ElementTests)
183+ test_func(ElementJacobian1d ./ElementJacobian1d)
184+ test_func(ElementJacobian2d ./ElementJacobian2d)
185+ test_func(CountIntegrator ./CountIntegrator)
176186test_func(OmegahElementTests ./OmegahElementTests)
177- test_func(OmegahCoordFieldTest ./OmegahCoordFieldTest)
178187if (MeshFields_USE_EXCEPTIONS)
179188 # exception caught - no error
180189 test_func(ExceptionTest ./ExceptionTest)
0 commit comments