20#ifndef WELLCONTRIBUTIONS_CUDA_HEADER_INCLUDED
21#define WELLCONTRIBUTIONS_CUDA_HEADER_INCLUDED
23#include <opm/simulators/linalg/bda/WellContributions.hpp>
25#include <cuda_runtime.h>
44 void apply(
double *d_x,
double *d_y);
60 double *d_Cnnzs =
nullptr;
61 double *d_Dnnzs =
nullptr;
62 double *d_Bnnzs =
nullptr;
63 int *d_Ccols =
nullptr;
64 int *d_Bcols =
nullptr;
65 double *d_z1 =
nullptr;
66 double *d_z2 =
nullptr;
67 unsigned int *d_val_pointers =
nullptr;
68 double* h_x =
nullptr;
69 double* h_y =
nullptr;
Definition: cuWellContributions.hpp:32
void APIalloc() override
Allocate memory for the StandardWells.
void APIaddMatrix(MatrixType type, int *colIndices, double *values, unsigned int val_size) override
Store a matrix in this object, in blocked csr format, can only be called after alloc() is called.
void apply(double *d_x, double *d_y)
Apply all Wells in this object performs y -= (C^T * (D^-1 * (B*x))) for all Wells.
void setCudaStream(cudaStream_t stream)
Set a cudaStream to be used.
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