Skip to content

Commit

Permalink
Disable notebooks with a warning if using float
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasDuswald committed Feb 19, 2024
1 parent d01cd4e commit 490ce15
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ if(real_t)
add_definitions("-DBDM_REALT=${real_t}")
add_definitions("-DBDM_CL_REALT=cl_${real_t}")
set(BDM_CONFIG_REALT "${real_t}")
if(notebooks AND real_t STREQUAL "float")
# This if statement turns of the notebooks when we run with real_t=float.
# Currently, the notebooks do not support BDM with float for unknown reasons.
message(WARNING "Notebooks are not supported with real_t=float. Disabling notebooks.")
set(notebooks OFF)
endif()
else()
message(STATUS "Using default real_t (double)")
set(BDM_CONFIG_REALT "float")
Expand Down

0 comments on commit 490ce15

Please sign in to comment.