Commit 88a92435 authored by Martin Bauer's avatar Martin Bauer
Browse files

Python Module

two versions available now via CMake switch:
   - by default the Python module is built without LBM module, since
     lbmpy can be used for this. Reduces compile time substantially.
   - if the LBM is needed in python, for example for the lbmpy testsuite
     it can be included by setting the CMake switch
     WALBERLA_BUILD_WITH_PYTHON_LBM
parent 0c8dad94
......@@ -77,6 +77,8 @@ option ( WALBERLA_BUILD_WITH_LTO "Enable link time optimizations"
option ( WALBERLA_BUILD_WITH_OPENMP "Enable OpenMP support" )
option ( WALBERLA_BUILD_WITH_PYTHON "Support for embedding Python" )
option ( WALBERLA_BUILD_WITH_PYTHON_MODULE "Build waLBerla python module" )
option ( WALBERLA_BUILD_WITH_PYTHON_LBM "Include LBM module into python module" OFF )
option ( WALBERLA_BUILD_WITH_LIKWID_MARKERS "Compile in markers for likwid-perfctr" )
......
......@@ -11,9 +11,11 @@ if ( WALBERLA_BUILD_WITH_PYTHON_MODULE )
set ( pythonModules "-Wl,-whole-archive" blockforest boundary domain_decomposition core field geometry lbm postprocessing python_coupling timeloop vtk "-Wl,-no-whole-archive" )
endif()
#add_library( walberla_cpp SHARED PythonModuleWithLbmModule.cpp )
if( WALBERLA_BUILD_WITH_PYTHON_LBM )
add_library( walberla_cpp SHARED PythonModuleWithLbmModule.cpp )
else()
add_library( walberla_cpp SHARED PythonModule.cpp )
endif()
target_link_libraries( walberla_cpp ${pythonModules} ${SERVICE_LIBS} )
set_target_properties( walberla_cpp PROPERTIES PREFIX "")
......
......@@ -21,10 +21,11 @@
#include "waLBerlaDefinitions.h"
#include "blockforest/python/Exports.h"
#include "field/GhostLayerField.h"
#include "field/python/Exports.h"
#include "geometry/python/Exports.h"
#include "lbm/all.h"
#include "lbm/lattice_model/ForceModel.h"
#include "lbm/python/ExportBasic.h"
#include "lbm/python/Exports.h"
#include "postprocessing/python/Exports.h"
#include "python_coupling/Manager.h"
#include "python_coupling/helper/ModuleInit.h"
......
......@@ -2,6 +2,8 @@
LBM module
**********
.. note:: This module is deprecated and about to be replaced by the native Python module *lbmpy*
Creation Functions
==================
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment