20#ifndef WELLCONTRIBUTIONS_CUDA_HEADER_INCLUDED
21#define WELLCONTRIBUTIONS_CUDA_HEADER_INCLUDED
25#include <cuda_runtime.h>
44 void apply(Scalar* d_x, Scalar* d_y);
58 Scalar* values,
unsigned int val_size)
override;
71 Scalar*
h_x =
nullptr;
72 Scalar*
h_y =
nullptr;
Definition: cuWellContributions.hpp:32
void setCudaStream(cudaStream_t stream)
void apply(Scalar *d_x, Scalar *d_y)
cudaStream_t stream
Definition: cuWellContributions.hpp:60
void APIalloc() override
Allocate memory for the StandardWells.
Scalar * d_z2
Definition: cuWellContributions.hpp:69
void APIaddMatrix(MatrixType type, int *colIndices, Scalar *values, unsigned int val_size) override
~WellContributionsCuda() override
Scalar * h_y
Definition: cuWellContributions.hpp:72
Scalar * d_Cnnzs
Definition: cuWellContributions.hpp:63
unsigned int * d_val_pointers
Definition: cuWellContributions.hpp:70
Scalar * d_z1
Definition: cuWellContributions.hpp:68
Scalar * d_Bnnzs
Definition: cuWellContributions.hpp:65
int * d_Ccols
Definition: cuWellContributions.hpp:66
Scalar * h_x
Definition: cuWellContributions.hpp:71
int * d_Bcols
Definition: cuWellContributions.hpp:67
Scalar * d_Dnnzs
Definition: cuWellContributions.hpp:64
Definition: WellContributions.hpp:53
MatrixType
StandardWell has C, D and B matrices that need to be copied.
Definition: WellContributions.hpp:59
Definition: blackoilboundaryratevector.hh:37