Skip to content

Commit

Permalink
Fix quadrature tests
Browse files Browse the repository at this point in the history
Unitary tests were not discovered by gtest and thus not run by the CI.

The `neumann` test is also fixed as it was using the wrong memory and execution space for the spline builder.

See merge request gysela-developpers/gyselalibxx!556

--------------------------------------------
  • Loading branch information
EmilyBourne committed Jul 9, 2024
1 parent 8339adb commit 4ce3236
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/quadrature/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ target_link_libraries(unit_tests_quadrature
gslx::quadrature
gslx::utils
)
gtest_discover_tests(unit_tests_quadrature
DISCOVERY_MODE PRE_TEST)
target_compile_definitions(unit_tests_quadrature PUBLIC)

foreach(GEOMETRY_VARIANT IN LISTS GEOMETRY_XVx_VARIANTS_LIST)
Expand Down
4 changes: 2 additions & 2 deletions tests/quadrature/neumann_quadrature_spline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ struct IDimX : SplineInterpPointsX::interpolation_mesh_type
};

using SplineXBuilder_1d = ddc::SplineBuilder<
Kokkos::DefaultExecutionSpace,
Kokkos::DefaultExecutionSpace::memory_space,
Kokkos::DefaultHostExecutionSpace,
Kokkos::DefaultHostExecutionSpace::memory_space,
BSplinesX,
IDimX,
SplineXBoundary,
Expand Down

0 comments on commit 4ce3236

Please sign in to comment.