added: build system option to instantiate for float scalar

This commit is contained in:
Arne Morten Kvarving 2024-05-31 10:40:31 +02:00
parent f33278e194
commit fda6a63049
2 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,7 @@ option(SIBLING_SEARCH "Search for other modules in sibling directories?" ON)
set( USE_OPENMP_DEFAULT OFF ) # Use of OpenMP is considered experimental
option(BUILD_FLOW "Build the production oriented flow simulator?" ON)
option(BUILD_FLOW_VARIANTS "Build the variants for flow by default?" OFF)
option(BUILD_FLOW_FLOAT_VARIANTS "Build the variants for flow using float?" OFF)
option(BUILD_FLOW_POLY_GRID "Build flow blackoil with polyhedral grid" OFF)
option(OPM_ENABLE_PYTHON "Enable python bindings?" OFF)
option(OPM_ENABLE_PYTHON_TESTS "Enable tests for the python bindings?" ON)
@ -288,6 +289,10 @@ macro (config_hook)
include_directories(${EXTRA_INCLUDES})
include(UseDamaris)
if(BUILD_FLOW_FLOAT_VARIANTS)
set(FLOW_INSTANTIATE_FLOAT 1)
endif()
endmacro (config_hook)
macro (prereqs_hook)

View File

@ -24,6 +24,7 @@ set (opm-simulators_CONFIG_VAR
HAVE_HDF5
USE_HIP
USE_TRACY
FLOW_INSTANTIATE_FLOAT
)
# dependencies