Skip to content
Snippets Groups Projects
Commit 6aa693aa authored by Hkorb's avatar Hkorb
Browse files

only set DOUBLE_ACCURACY for cpu bindings

parent f6980f94
No related branches found
No related tags found
1 merge request!245Add new probe, Refactor File Writer
...@@ -7,7 +7,6 @@ endif() ...@@ -7,7 +7,6 @@ endif()
project(VirtualFluidsPython LANGUAGES ${PYFLUIDS_LANGUAGES}) project(VirtualFluidsPython LANGUAGES ${PYFLUIDS_LANGUAGES})
pybind11_add_module(python_bindings MODULE src/VirtualFluids.cpp) pybind11_add_module(python_bindings MODULE src/VirtualFluids.cpp)
target_compile_definitions(python_bindings PUBLIC VF_DOUBLE_ACCURACY)
set_target_properties( python_bindings PROPERTIES set_target_properties( python_bindings PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/pythonbindings/pyfluids LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/pythonbindings/pyfluids
...@@ -25,6 +24,7 @@ IF(BUILD_VF_GPU) ...@@ -25,6 +24,7 @@ IF(BUILD_VF_GPU)
ENDIF() ENDIF()
IF(BUILD_VF_CPU) IF(BUILD_VF_CPU)
target_compile_definitions(python_bindings PUBLIC VF_DOUBLE_ACCURACY)
target_compile_definitions(python_bindings PRIVATE VF_METIS VF_MPI VF_CPU_PYTHONBINDINGS) target_compile_definitions(python_bindings PRIVATE VF_METIS VF_MPI VF_CPU_PYTHONBINDINGS)
target_link_libraries(python_bindings PRIVATE simulationconfig VirtualFluidsCore muparser) target_link_libraries(python_bindings PRIVATE simulationconfig VirtualFluidsCore muparser)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment