From fc96ef86c1b05449cc053864e2eeea615211885b Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Mon, 17 Oct 2022 16:37:28 +0200 Subject: [PATCH] [bugfix] Unconditionally compile WellContributions.cpp et al Otherwise we get undefined references. Fixes problems introduced with #4157 --- CMakeLists_files.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists_files.cmake b/CMakeLists_files.cmake index fe9c8e26f..d17e8934d 100644 --- a/CMakeLists_files.cmake +++ b/CMakeLists_files.cmake @@ -44,6 +44,9 @@ list (APPEND MAIN_SOURCE_FILES opm/simulators/flow/KeywordValidation.cpp opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.cpp opm/simulators/flow/ValidationFunctions.cpp + opm/simulators/linalg/bda/WellContributions.cpp + opm/simulators/linalg/bda/Matrix.cpp + opm/simulators/linalg/bda/MultisegmentWellContribution.cpp opm/simulators/linalg/ExtractParallelGridInformationToISTL.cpp opm/simulators/linalg/FlexibleSolver1.cpp opm/simulators/linalg/FlexibleSolver2.cpp @@ -132,9 +135,6 @@ if(OPENCL_FOUND) list (APPEND MAIN_SOURCE_FILES opm/simulators/linalg/bda/opencl/openclWellContributions.cpp) endif() if(CUDA_FOUND OR OPENCL_FOUND OR HAVE_FPGA OR HAVE_AMGCL) - list (APPEND MAIN_SOURCE_FILES opm/simulators/linalg/bda/WellContributions.cpp) - list (APPEND MAIN_SOURCE_FILES opm/simulators/linalg/bda/Matrix.cpp) - list (APPEND MAIN_SOURCE_FILES opm/simulators/linalg/bda/MultisegmentWellContribution.cpp) list (APPEND MAIN_SOURCE_FILES opm/simulators/linalg/bda/BdaBridge.cpp) endif() if(HAVE_FPGA)