@@ -7,6 +7,7 @@ include(CMakePackageConfigHelpers)
7
7
8
8
option (MeshFields_USE_Cabana "Build with the Cabana storage backend" OFF )
9
9
10
+ find_package (Kokkos REQUIRED)
10
11
find_package (Omega_h REQUIRED)
11
12
#Clear the omegah compilation flags that it passes to cuda. Using the
12
13
# kokkos target, and nvcc_wrapper, provide sufficient flags.
@@ -17,11 +18,14 @@ if(MeshFields_USE_Cabana)
17
18
endif ()
18
19
19
20
set (MESHFIELD_HEADERS
21
+ src/MeshField_Defines.hpp
20
22
src/MeshField_Utility.hpp
21
23
src/MeshField_Macros.hpp
22
24
src/KokkosController.hpp
23
25
src/MeshField_Element.hpp
26
+ src/MeshField_Integrate.hpp
24
27
src/MeshField_Shape.hpp
28
+ src/MeshField_ShapeField.hpp
25
29
src/MeshField_Fail.hpp
26
30
src/MeshField_For.hpp
27
31
src/MeshField_Reduce.hpp
@@ -42,12 +46,13 @@ set(MESHFIELD_SOURCES
42
46
43
47
add_library (meshfields ${MESHFIELD_SOURCES} )
44
48
45
- target_compile_features (meshfields INTERFACE cxx_std_17 )
49
+ target_compile_features (meshfields INTERFACE cxx_std_20 )
46
50
target_include_directories (meshfields
47
51
PUBLIC
48
52
"$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR} >" # for MeshField_Config.hpp
49
53
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /src>"
50
54
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR} >" )
55
+ target_link_libraries (meshfields INTERFACE Kokkos::kokkos)
51
56
target_link_libraries (meshfields INTERFACE Omega_h::omega_h)
52
57
if (Kokkos_ENABLE_CUDA)
53
58
target_compile_options (meshfields INTERFACE "--expt-relaxed-constexpr" )
@@ -159,8 +164,10 @@ endfunction()
159
164
meshfields_add_exe(KokkosTests test /testKokkos.cpp)
160
165
meshfields_add_exe(SerializationTests test /testSerialize.cpp)
161
166
meshfields_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)
162
170
meshfields_add_exe(OmegahElementTests test /testOmegahElement.cpp)
163
- meshfields_add_exe(OmegahCoordFieldTest test /testOmegahCoordField.cpp)
164
171
meshfields_add_exe(ExceptionTest test /testExceptions.cpp)
165
172
166
173
if (MeshFields_USE_Cabana)
@@ -173,8 +180,10 @@ endif()
173
180
test_func(KokkosTests ./KokkosTests)
174
181
test_func(SerializationTests ./SerializationTests)
175
182
test_func(ElementTests ./ElementTests)
183
+ test_func(ElementJacobian1d ./ElementJacobian1d)
184
+ test_func(ElementJacobian2d ./ElementJacobian2d)
185
+ test_func(CountIntegrator ./CountIntegrator)
176
186
test_func(OmegahElementTests ./OmegahElementTests)
177
- test_func(OmegahCoordFieldTest ./OmegahCoordFieldTest)
178
187
if (MeshFields_USE_EXCEPTIONS)
179
188
# exception caught - no error
180
189
test_func(ExceptionTest ./ExceptionTest)
0 commit comments