-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into test-add_linear_axis_aligned_geometry_test
- Loading branch information
Showing
136 changed files
with
6,901 additions
and
6,503 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
cmake_minimum_required( VERSION 3.16 ) | ||
project( T8CODE DESCRIPTION "Parallel algorithms and data structures for tree-based AMR with arbitrary element shapes." LANGUAGES C CXX ) | ||
include( CTest ) | ||
|
||
|
||
option( T8CODE_BUILD_AS_SHARED_LIBRARY "Whether t8code should be built as a shared or a static library" ON ) | ||
option( T8CODE_BUILD_TESTS "Build t8code's automated tests" ON ) | ||
option( T8CODE_BUILD_TUTORIALS "Build t8code's tutorials" ON ) | ||
option( T8CODE_BUILD_EXAMPLES "Build t8code's examples" ON ) | ||
|
||
option( T8CODE_ENABLE_MPI "Enable t8code's features which rely on MPI" ON ) | ||
option( T8CODE_ENABLE_VTK "Enable t8code's features which rely on VTK" OFF ) | ||
|
||
|
||
if( NOT CMAKE_BUILD_TYPE ) | ||
set( CMAKE_BUILD_TYPE "Release" ) | ||
endif() | ||
|
||
set( CMAKE_C_STANDARD 11 ) | ||
set( CMAKE_C_STANDARD_REQUIRED ON ) | ||
set( CMAKE_C_EXTENSIONS OFF ) | ||
list( APPEND CMAKE_C_FLAGS "-Wall" ) | ||
|
||
set( CMAKE_CXX_STANDARD 17 ) | ||
set( CMAKE_CXX_STANDARD_REQUIRED ON ) | ||
set( CMAKE_CXX_EXTENSIONS OFF ) | ||
list( APPEND CMAKE_CXX_FLAGS "-Wall" ) | ||
|
||
|
||
if( T8CODE_ENABLE_MPI ) | ||
find_package( MPI COMPONENTS C REQUIRED ) | ||
if( NOT MPIEXEC_EXECUTABLE ) | ||
message( FATAL_ERROR "MPIEXEC was not found" ) | ||
endif() | ||
set( SC_ENABLE_MPI ON ) | ||
set( mpi ON ) # This is very dirty, we should consider fixing this in the p4est repo | ||
endif() | ||
|
||
if( T8CODE_ENABLE_VTK ) | ||
find_package( VTK REQUIRED ) | ||
endif() | ||
|
||
# Override default for this libsc option | ||
set( BUILD_SHARED_LIBS ON CACHE BOOL "Build libsc as a shared library" ) | ||
|
||
# Prevent `libsc` and `p4est` from overwriting the default install prefix. | ||
set(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT FALSE) | ||
|
||
# Rpath options necessary for shared library install to work correctly in user projects. | ||
set(CMAKE_INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib) | ||
set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) | ||
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH true) | ||
|
||
add_subdirectory( ${CMAKE_CURRENT_LIST_DIR}/sc ) | ||
add_subdirectory( ${CMAKE_CURRENT_LIST_DIR}/p4est ) | ||
add_subdirectory( ${CMAKE_CURRENT_LIST_DIR}/src ) | ||
|
||
if ( T8CODE_BUILD_TESTS ) | ||
add_subdirectory( ${CMAKE_CURRENT_LIST_DIR}/test ) | ||
endif() | ||
|
||
if ( T8CODE_BUILD_TUTORIALS ) | ||
add_subdirectory( ${CMAKE_CURRENT_LIST_DIR}/tutorials ) | ||
endif() | ||
|
||
if ( T8CODE_BUILD_EXAMPLES ) | ||
add_subdirectory( ${CMAKE_CURRENT_LIST_DIR}/example ) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
I place my contributions to t8code under the FreeBSD license. Alexandre Dutka <[email protected]> |
Oops, something went wrong.