2017-12-19 05:44:24 -06:00
|
|
|
# defines that must be present in config.h for our headers
|
|
|
|
set (opm-simulators_CONFIG_VAR
|
|
|
|
HAVE_OPM_GRID
|
|
|
|
HAVE_PTHREAD
|
|
|
|
HAVE_EWOMS
|
2018-01-17 08:33:33 -06:00
|
|
|
HAVE_MPI
|
|
|
|
HAVE_PETSC
|
2022-11-17 02:59:49 -06:00
|
|
|
COMPILE_BDA_BRIDGE
|
2019-12-03 07:10:21 -06:00
|
|
|
HAVE_CUDA
|
2020-06-22 11:26:49 -05:00
|
|
|
HAVE_OPENCL
|
2021-11-01 07:45:21 -05:00
|
|
|
HAVE_OPENCL_HPP
|
2021-06-02 09:19:00 -05:00
|
|
|
HAVE_AMGCL
|
2021-06-30 09:03:14 -05:00
|
|
|
HAVE_VEXCL
|
2022-10-18 06:59:00 -05:00
|
|
|
HAVE_ROCALUTION
|
2023-01-18 03:11:42 -06:00
|
|
|
HAVE_ROCSPARSE
|
2018-01-17 08:33:33 -06:00
|
|
|
HAVE_SUITESPARSE_UMFPACK_H
|
2024-08-09 03:38:35 -05:00
|
|
|
HAVE_DUNE_COMMON
|
2018-01-17 08:33:33 -06:00
|
|
|
HAVE_DUNE_ISTL
|
2022-04-01 03:35:30 -05:00
|
|
|
DUNE_ISTL_WITH_CHECKING
|
2017-12-19 05:44:24 -06:00
|
|
|
DUNE_ISTL_VERSION_MAJOR
|
|
|
|
DUNE_ISTL_VERSION_MINOR
|
|
|
|
DUNE_ISTL_VERSION_REVISION
|
|
|
|
HAVE_SUITESPARSE_UMFPACK
|
2022-10-12 04:19:00 -05:00
|
|
|
HAVE_DAMARIS
|
2023-02-09 05:50:46 -06:00
|
|
|
HAVE_HDF5
|
2024-03-11 09:30:51 -05:00
|
|
|
USE_HIP
|
2023-08-15 07:35:25 -05:00
|
|
|
USE_TRACY
|
2024-05-31 03:40:31 -05:00
|
|
|
FLOW_INSTANTIATE_FLOAT
|
2024-08-09 03:38:35 -05:00
|
|
|
HAVE_FLOATING_POINT_FROM_CHARS
|
2017-12-19 05:44:24 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
set (opm-simulators_DEPS
|
|
|
|
# Compile with C99 support if available
|
|
|
|
"C99"
|
|
|
|
# Various runtime library enhancements
|
|
|
|
"Boost 1.44.0
|
2020-02-12 02:10:07 -06:00
|
|
|
COMPONENTS date_time system unit_test_framework REQUIRED"
|
2017-12-19 05:44:24 -06:00
|
|
|
# DUNE prerequisites
|
|
|
|
"dune-common REQUIRED"
|
|
|
|
"dune-istl REQUIRED"
|
2024-08-09 03:38:35 -05:00
|
|
|
"dune-alugrid"
|
|
|
|
"dune-fem"
|
2018-01-17 08:33:33 -06:00
|
|
|
# matrix library
|
|
|
|
"BLAS REQUIRED"
|
|
|
|
"LAPACK REQUIRED"
|
|
|
|
# Look for MPI support
|
|
|
|
"MPI"
|
2017-12-19 05:44:24 -06:00
|
|
|
# Tim Davis' SuiteSparse archive
|
2020-05-20 07:58:44 -05:00
|
|
|
"SuiteSparse REQUIRED COMPONENTS umfpack"
|
2018-01-17 08:33:33 -06:00
|
|
|
# SuperLU direct solver
|
|
|
|
"SuperLU"
|
2022-10-18 06:59:00 -05:00
|
|
|
# ROCALUTION from ROCM framework
|
|
|
|
"rocalution"
|
2023-01-18 03:11:42 -06:00
|
|
|
# packages from ROCm framework
|
|
|
|
"rocblas"
|
|
|
|
"rocsparse"
|
2017-12-19 05:44:24 -06:00
|
|
|
# OPM dependency
|
|
|
|
"opm-common REQUIRED"
|
|
|
|
"opm-grid REQUIRED"
|
2023-09-01 05:02:04 -05:00
|
|
|
"Damaris 1.9"
|
2023-01-31 03:40:42 -06:00
|
|
|
"HDF5"
|
2023-08-15 07:35:25 -05:00
|
|
|
"Tracy"
|
2017-12-19 05:44:24 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
find_package_deps(opm-simulators)
|
2018-03-05 06:04:00 -06:00
|
|
|
|
|
|
|
if(NOT HAVE_ECL_INPUT OR NOT HAVE_ECL_OUTPUT)
|
|
|
|
message(FATAL_ERROR "Eclipse input/output support required in opm-common")
|
|
|
|
endif()
|