Skip to content

Commit 4edeb84

Browse files
Merge pull request #50 from OpenSEMBA/dev
Updating to Maxwell/Hesthaven/Global operators with curved elements
2 parents 0b2877c + 3ed0baa commit 4edeb84

File tree

85 files changed

+8778
-6472
lines changed

Some content is hidden

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

85 files changed

+8778
-6472
lines changed

CMakeLists.txt

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ project(dgtd)
88

99
set(CMAKE_CXX_STANDARD 17)
1010

11-
option(MAXWELL_USE_MPI OFF)
12-
option(MAXWELL_ENABLE_PYTHON_BINDINGS OFF)
13-
option(MAXWELL_USE_MFEM_AS_SUBDIRECTORY ON)
11+
option(SEMBA_DGTD_ENABLE_MPI "Enable MPI support" OFF )
12+
option(SEMBA_DGTD_ENABLE_PYTHON_BINDINGS "Enable Python bindings" OFF )
13+
option(SEMBA_DGTD_ENABLE_MFEM_AS_SUBDIRECTORY "Use MFEM as a subdirectory" ON )
1414

15-
option(MAXWELL_ENABLE_EXTENSIVE_CASE_TESTS ON)
16-
option(MAXWELL_ENABLE_EXTENSIVE_SOLVER_TESTS ON)
17-
option(MAXWELL_ENABLE_EXTENSIVE_RCS_TESTS ON)
15+
option(SEMBA_DGTD_ENABLE_EXTENSIVE_CASE_TESTS "Enable extensive case tests" ON )
16+
option(SEMBA_DGTD_ENABLE_EXTENSIVE_SOLVER_TESTS "Enable extensive solver tests" ON )
17+
option(SEMBA_DGTD_ENABLE_EXTENSIVE_RCS_TESTS "Enable extensive RCS tests" ON )
1818

19-
option(MAXWELL_SHOW_TIMER_INFORMATION OFF)
19+
option(SEMBA_DGTD_ENABLE_TIMER_INFORMATION "Enable timer information" OFF)
2020

2121
include_directories(
2222
src/
2323
src/maxwell/
2424
)
2525

26-
if (MAXWELL_USE_MFEM_AS_SUBDIRECTORY)
26+
if (SEMBA_DGTD_ENABLE_MFEM_AS_SUBDIRECTORY)
2727
add_subdirectory(external/mfem-geg)
2828
else ()
2929
find_package(MFEM CONFIG REQUIRED)
@@ -32,26 +32,10 @@ endif()
3232

3333
add_subdirectory(src)
3434

35-
if(MAXWELL_ENABLE_PYTHON_BINDINGS)
35+
if(SEMBA_DGTD_ENABLE_PYTHON_BINDINGS)
3636
add_subdirectory(pythonBindings)
3737
endif()
3838

39-
if(MAXWELL_ENABLE_EXTENSIVE_CASE_TESTS)
40-
add_definitions(-DENABLE_EXTENSIVE_CASE_TESTS)
41-
endif()
42-
43-
if(MAXWELL_ENABLE_EXTENSIVE_SOLVER_TESTS)
44-
add_definitions(-DENABLE_EXTENSIVE_SOLVER_TESTS)
45-
endif()
46-
47-
if(MAXWELL_ENABLE_EXTENSIVE_RCS_TESTS)
48-
add_definitions(-DENABLE_EXTENSIVE_RCS_TESTS)
49-
endif()
50-
51-
if(MAXWELL_SHOW_TIMER_INFORMATION)
52-
add_definitions(-DSHOW_TIMER_INFORMATION)
53-
endif()
54-
5539
enable_testing()
5640

5741
add_subdirectory(test/ )

CMakePresets.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
"binaryDir": "${sourceDir}/build/${presetName}",
1313
"cacheVariables": {
1414
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
15-
"MAXWELL_USE_MFEM_AS_SUBDIRECTORY": "ON"
15+
"SEMBA_DGTD_ENABLE_MFEM_AS_SUBDIRECTORY": "ON"
1616
}
1717
},
1818
{
1919
"name": "gnu",
2020
"displayName": "GNU release",
2121
"inherits": "default",
2222
"cacheVariables": {
23-
"MAXWELL_ENABLE_EXTENSIVE_CASE_TESTS": "ON",
24-
"MAXWELL_ENABLE_EXTENSIVE_SOLVER_TESTS": "ON",
23+
"SEMBA_DGTD_ENABLE_EXTENSIVE_CASE_TESTS": "ON",
24+
"SEMBA_DGTD_ENABLE_EXTENSIVE_SOLVER_TESTS": "ON",
2525
"CMAKE_BUILD_TYPE": "Release"
2626
}
2727
},
@@ -38,8 +38,8 @@
3838
"displayName": "x64 Release",
3939
"inherits": "default",
4040
"cacheVariables": {
41-
"MAXWELL_ENABLE_EXTENSIVE_CASE_TESTS": "ON",
42-
"MAXWELL_ENABLE_EXTENSIVE_SOLVER_TESTS": "ON",
41+
"SEMBA_DGTD_ENABLE_EXTENSIVE_CASE_TESTS": "ON",
42+
"SEMBA_DGTD_ENABLE_EXTENSIVE_SOLVER_TESTS": "ON",
4343
"CMAKE_BUILD_TYPE": "Release"
4444
}
4545
}

src/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
if (MAXWELL_USE_MPI)
2-
message(STATUS "MAXWELL_USE_MPI:" ${MAXWELL_USE_MPI})
3-
add_compile_definitions(MAXWELL_USE_MPI)
1+
if (SEMBA_DGTD_ENABLE_MPI)
2+
message(STATUS "SEMBA_DGTD_ENABLE_MPI:" ${SEMBA_DGTD_ENABLE_MPI})
3+
add_compile_definitions(SEMBA_DGTD_ENABLE_MPI)
44
endif()
55

66
add_subdirectory(launcher)

src/components/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ add_library(maxwell-components STATIC
1313
"SubMesher.cpp"
1414
"RCSManager.cpp"
1515
"RCSExporter.cpp"
16-
)
16+
"ProblemDefinition.cpp"
17+
"DGOperatorFactory.cpp")
1718

1819
get_filename_component(PARENT_DIR ../ ABSOLUTE)
1920
include_directories(${PARENT_DIR})

0 commit comments

Comments
 (0)