diff --git a/opm/simulators/linalg/ISTLSolverEbos.hpp b/opm/simulators/linalg/ISTLSolverEbos.hpp index 53dcd8957..f384fdea9 100644 --- a/opm/simulators/linalg/ISTLSolverEbos.hpp +++ b/opm/simulators/linalg/ISTLSolverEbos.hpp @@ -262,7 +262,7 @@ namespace Opm bool use_fpga = bdaBridge->getUseFpga(); if (use_gpu || use_fpga) { const std::string accelerator_mode = EWOMS_GET_PARAM(TypeTag, std::string, AcceleratorMode); - WellContributions wellContribs(accelerator_mode); + WellContributions wellContribs(accelerator_mode, useWellConn_); bdaBridge->initWellContributions(wellContribs); if (!useWellConn_) { diff --git a/opm/simulators/linalg/bda/WellContributions.cpp b/opm/simulators/linalg/bda/WellContributions.cpp index 3ab48e59f..d19f318d4 100644 --- a/opm/simulators/linalg/bda/WellContributions.cpp +++ b/opm/simulators/linalg/bda/WellContributions.cpp @@ -28,7 +28,7 @@ namespace Opm { -WellContributions::WellContributions(std::string accelerator_mode){ +WellContributions::WellContributions(std::string accelerator_mode, bool useWellConn){ if(accelerator_mode.compare("cusparse") == 0){ cuda_gpu = true; } diff --git a/opm/simulators/linalg/bda/WellContributions.hpp b/opm/simulators/linalg/bda/WellContributions.hpp index 87ed49a72..90afb3683 100644 --- a/opm/simulators/linalg/bda/WellContributions.hpp +++ b/opm/simulators/linalg/bda/WellContributions.hpp @@ -173,7 +173,9 @@ public: void alloc(); /// Create a new WellContributions - WellContributions(std::string accelerator_mode); + /// \param[in] accelerator_mode string indicating which solverBackend is used + /// \param[in] useWellConn true iff wellcontributions are added to the matrix + WellContributions(std::string accelerator_mode, bool useWellConn); /// Destroy a WellContributions, and free memory ~WellContributions();