diff --git a/CMakeLists.txt b/CMakeLists.txt index f02698b2367f48d4ba691fe4eb82bb4d86451eab..5b1c017af7bdd54a605c171f161b5fbd242023f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,6 @@ cmake_minimum_required( VERSION 3.24 ) project ( sfg-walberla ) -option( SFG_WALBERLA_BUILD_EXAMPLES "Build sfg-walberla's examples" OFF ) - list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ) find_package( PystencilsSfg REQUIRED ) @@ -19,7 +17,3 @@ target_link_libraries( INTERFACE core stencil domain_decomposition blockforest field ) - -if( ${SFG_WALBERLA_BUILD_EXAMPLES} ) - add_subdirectory( examples ) -endif() \ No newline at end of file diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 4b5db3b76b7a52820daf841c285ac8cc65d77167..dd2f8338ae859a78a4af55fa53bc51db389d3c4c 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,3 +1,6 @@ +cmake_minimum_required( VERSION 3.24 ) +project( walberla-codegen-examples ) + include(FetchContent) FetchContent_Declare( @@ -6,3 +9,8 @@ FetchContent_Declare( ) FetchContent_MakeAvailable(walberla) + +add_subdirectory(${CMAKE_SOURCE_DIR}/.. ${CMAKE_BINARY_DIR}/sfg-walberla) + +add_subdirectory( PoiseuilleChannel ) + diff --git a/examples/PoiseuilleChannel/CMakeLists.txt b/examples/PoiseuilleChannel/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/examples/PoiseuilleChannel/LbmAlgorithms.py b/examples/PoiseuilleChannel/LbmAlgorithms.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/examples/PoiseuilleChannel/PoiseuilleChannel.cpp b/examples/PoiseuilleChannel/PoiseuilleChannel.cpp new file mode 100644 index 0000000000000000000000000000000000000000..9b6bdc2ec2f03e639bbb4a5124ae710e2467741b --- /dev/null +++ b/examples/PoiseuilleChannel/PoiseuilleChannel.cpp @@ -0,0 +1,3 @@ +int main(void) { + return 0; +}