mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
added: build system option to instantiate for float scalar
This commit is contained in:
parent
f33278e194
commit
fda6a63049
@ -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
|
set( USE_OPENMP_DEFAULT OFF ) # Use of OpenMP is considered experimental
|
||||||
option(BUILD_FLOW "Build the production oriented flow simulator?" ON)
|
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_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(BUILD_FLOW_POLY_GRID "Build flow blackoil with polyhedral grid" OFF)
|
||||||
option(OPM_ENABLE_PYTHON "Enable python bindings?" OFF)
|
option(OPM_ENABLE_PYTHON "Enable python bindings?" OFF)
|
||||||
option(OPM_ENABLE_PYTHON_TESTS "Enable tests for the python bindings?" ON)
|
option(OPM_ENABLE_PYTHON_TESTS "Enable tests for the python bindings?" ON)
|
||||||
@ -288,6 +289,10 @@ macro (config_hook)
|
|||||||
include_directories(${EXTRA_INCLUDES})
|
include_directories(${EXTRA_INCLUDES})
|
||||||
|
|
||||||
include(UseDamaris)
|
include(UseDamaris)
|
||||||
|
|
||||||
|
if(BUILD_FLOW_FLOAT_VARIANTS)
|
||||||
|
set(FLOW_INSTANTIATE_FLOAT 1)
|
||||||
|
endif()
|
||||||
endmacro (config_hook)
|
endmacro (config_hook)
|
||||||
|
|
||||||
macro (prereqs_hook)
|
macro (prereqs_hook)
|
||||||
|
@ -24,6 +24,7 @@ set (opm-simulators_CONFIG_VAR
|
|||||||
HAVE_HDF5
|
HAVE_HDF5
|
||||||
USE_HIP
|
USE_HIP
|
||||||
USE_TRACY
|
USE_TRACY
|
||||||
|
FLOW_INSTANTIATE_FLOAT
|
||||||
)
|
)
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
|
Loading…
Reference in New Issue
Block a user