Skip to content

Commit 4bb6bdc

Browse files
Adds option to launch l2 analysis tests, off by default
1 parent 2a13141 commit 4bb6bdc

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ option(SEMBA_DGTD_ENABLE_MFEM_AS_SUBDIRECTORY "Use MFEM as a subdirectory" ON )
1717
option(SEMBA_DGTD_ENABLE_EXTENSIVE_CASE_TESTS "Enable extensive case tests" ON )
1818
option(SEMBA_DGTD_ENABLE_EXTENSIVE_SOLVER_TESTS "Enable extensive solver tests" ON )
1919
option(SEMBA_DGTD_ENABLE_EXTENSIVE_RCS_TESTS "Enable extensive RCS tests" ON )
20+
option(SEMBA_DGTD_ENABLE_L2_ANALYSIS_TESTS "Enable L2 Analysis Tests" OFF)
2021

2122
option(SEMBA_DGTD_ENABLE_TIMER_INFORMATION "Enable timer information" ON)
2223

test/cases/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ include_directories(./)
77
add_executable (cases_tests
88
$<TARGET_OBJECTS:TestLauncher>
99
"CasesTest.cpp"
10-
"AnalyticalStudyTests.cpp"
11-
"L2ErrorAnalysis.cpp"
1210
../FieldUtils.cpp)
1311

1412
if(SEMBA_DGTD_ENABLE_EXTENSIVE_CASE_TESTS)
@@ -17,5 +15,12 @@ if(SEMBA_DGTD_ENABLE_EXTENSIVE_CASE_TESTS)
1715
"ExtensiveCasesTest.cpp")
1816
endif()
1917

18+
if(SEMBA_DGTD_ENABLE_L2_ANALYSIS_TESTS)
19+
message(STATUS "Appending AnalyticalStudyTests and L2ErrorAnalysis to cases_tests")
20+
target_sources(cases_tests PRIVATE
21+
"AnalyticalStudyTests.cpp"
22+
"L2ErrorAnalysis.cpp")
23+
endif()
24+
2025
target_include_directories(cases_tests PRIVATE ${GSL_INCLUDE_DIRS})
2126
target_link_libraries(cases_tests maxwell-driver GTest::gtest mfem ${GSL_LIBRARIES})

0 commit comments

Comments
 (0)