20#ifndef WELLCONTRIBUTIONS_ROCSPARSE_HEADER_INCLUDED
21#define WELLCONTRIBUTIONS_ROCSPARSE_HEADER_INCLUDED
23#include <opm/simulators/linalg/gpubridge/WellContributions.hpp>
25#include <hip/hip_runtime_api.h>
38 void apply_stdwells(Scalar* d_x, Scalar*
d_y);
39 void apply_mswells(Scalar* d_x, Scalar*
d_y);
40 void apply(Scalar* d_x, Scalar*
d_y);
50 Scalar* values,
unsigned int val_size)
override;
52 Scalar *d_Cnnzs_hip, *d_Dnnzs_hip, *d_Bnnzs_hip;
53 unsigned *d_Ccols_hip, *d_Bcols_hip;
54 unsigned *d_val_pointers_hip;
56 std::vector<Scalar> h_x;
57 std::vector<Scalar> h_y;
Definition rocsparseWellContributions.hpp:33
void APIaddMatrix(MatrixType type, int *colIndices, Scalar *values, unsigned int val_size) override
Api specific upload of matrix.
Definition rocsparseWellContributions.cpp:204
void APIalloc() override
Allocate memory for the StandardWells.
Definition rocsparseWellContributions.cpp:253
This class serves to eliminate the need to include the WellContributions into the matrix (with –matri...
Definition WellContributions.hpp:51
MatrixType
StandardWell has C, D and B matrices that need to be copied.
Definition WellContributions.hpp:57
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242