20#ifndef WELLCONTRIBUTIONS_ROCSPARSE_HEADER_INCLUDED
21#define WELLCONTRIBUTIONS_ROCSPARSE_HEADER_INCLUDED
23#include <opm/simulators/linalg/bda/WellContributions.hpp>
25#include <hip/hip_runtime_api.h>
39 void apply_stdwells(
double *d_x,
double *d_y);
40 void apply_mswells(
double *d_x,
double *d_y);
41 void apply(
double *d_x,
double *d_y);
42 void setStream(hipStream_t stream);
50 double *d_Cnnzs_hip, *d_Dnnzs_hip, *d_Bnnzs_hip;
51 unsigned *d_Ccols_hip, *d_Bcols_hip;
52 unsigned *d_val_pointers_hip;
54 std::vector<double> h_x;
55 std::vector<double> h_y;
Definition rocsparseWellContributions.hpp:34
void APIaddMatrix(MatrixType type, int *colIndices, double *values, unsigned int val_size) override
Api specific upload of matrix.
Definition rocsparseWellContributions.cpp:193
void APIalloc() override
Allocate memory for the StandardWells.
Definition rocsparseWellContributions.cpp:229
This class serves to eliminate the need to include the WellContributions into the matrix (with –matri...
Definition WellContributions.hpp:52
MatrixType
StandardWell has C, D and B matrices that need to be copied.
Definition WellContributions.hpp:58
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition BlackoilPhases.hpp:27