Merge pull request #5288 from akva2/multisegment_well_contrib_encaps

avoid including MultisegmentWellContribution in WellContributions.hpp
This commit is contained in:
Bård Skaflestad 2024-04-17 10:52:07 +02:00 committed by GitHub
commit 607f64e00c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 18 additions and 15 deletions

View File

@ -18,11 +18,12 @@
*/
#include <config.h> // CMake
#include <opm/simulators/linalg/bda/WellContributions.hpp>
#include <opm/common/OpmLog/OpmLog.hpp>
#include <opm/common/ErrorMacros.hpp>
#include <opm/simulators/linalg/bda/WellContributions.hpp>
#include <opm/simulators/linalg/bda/MultisegmentWellContribution.hpp>
#ifdef HAVE_OPENCL
#include <opm/simulators/linalg/bda/opencl/openclWellContributions.hpp>
@ -36,8 +37,9 @@
#include <opm/simulators/linalg/bda/rocsparseWellContributions.hpp>
#endif
namespace Opm
{
namespace Opm {
WellContributions::~WellContributions() = default;
std::unique_ptr<WellContributions>
WellContributions::create(const std::string& accelerator_mode, bool useWellConn)

View File

@ -23,14 +23,14 @@
#include <memory>
#include <vector>
#include <opm/simulators/linalg/bda/MultisegmentWellContribution.hpp>
#if HAVE_SUITESPARSE_UMFPACK
#include<umfpack.h>
#endif
#include <dune/common/version.hh>
namespace Opm
{
namespace Opm {
class MultisegmentWellContribution;
/// This class serves to eliminate the need to include the WellContributions into the matrix (with --matrix-add-well-contributions=true) for the cusparseSolver or openclSolver.
/// If the --matrix-add-well-contributions commandline parameter is true, this class should still be used, but be empty.
@ -89,7 +89,7 @@ public:
void alloc();
/// Empty destructor.
virtual ~WellContributions() = default;
virtual ~WellContributions();
/// Indicate how large the blocks of the StandardWell (C and B) are
/// \param[in] dim number of columns

View File

@ -19,14 +19,15 @@
#include <config.h> // CMake
#include <opm/simulators/linalg/bda/cuda/cuWellContributions.hpp>
#include "opm/simulators/linalg/bda/cuda/cuWellContributions.hpp"
#include "opm/simulators/linalg/bda/cuda/cuda_header.hpp"
#include <cuda_runtime.h>
#include <opm/common/OpmLog/OpmLog.hpp>
#include <opm/common/ErrorMacros.hpp>
#include <opm/common/OpmLog/OpmLog.hpp>
#include <opm/simulators/linalg/bda/MultisegmentWellContribution.hpp>
#include <opm/simulators/linalg/bda/cuda/cuda_header.hpp>
#include <cuda_runtime.h>
namespace Opm
{

View File

@ -18,12 +18,12 @@
*/
#include <config.h> // CMake
#include <opm/simulators/linalg/bda/opencl/openclWellContributions.hpp>
#include <opm/common/OpmLog/OpmLog.hpp>
#include <opm/common/ErrorMacros.hpp>
#include <opm/simulators/linalg/bda/MultisegmentWellContribution.hpp>
namespace Opm
{

View File

@ -39,10 +39,10 @@
#include <opm/common/OpmLog/OpmLog.hpp>
#include <opm/common/ErrorMacros.hpp>
#include <opm/simulators/linalg/bda/MultisegmentWellContribution.hpp>
#include <hip/hip_runtime.h>
#define HIP_CHECK(stat) \
{ \
if(stat != hipSuccess) \