24#ifndef OPM_CO2TABLES_HPP
25#define OPM_CO2TABLES_HPP
29#include <opm/common/utility/gpuDecorators.hpp>
30#include <opm/common/utility/VectorWithDefaultAllocator.hpp>
37 using Scalar = double;
38 static const char *name;
39 static const int numX = 200;
40 static const Scalar xMin;
41 static const Scalar xMax;
42 static const int numY = 500;
43 static const Scalar yMin;
44 static const Scalar yMax;
45 static const Scalar vals[200][500];
50 using Scalar = double;
51 static const char *name;
52 static const int numX = 200;
53 static const Scalar xMin;
54 static const Scalar xMax;
55 static const int numY = 500;
56 static const Scalar yMin;
57 static const Scalar yMax;
58 static const Scalar vals[200][500];
61template<
class Scalar =
double,
template<
class>
class Storage = VectorWithDefaultAllocator>
67 static constexpr double brineSalinity = 1.000000000000000e-01;
73 : tabulatedEnthalpy(std::move(enthalpy)), tabulatedDensity(std::move(density))
78 return tabulatedEnthalpy;
82 return tabulatedDensity;
89namespace Opm::gpuistl {
90 template <
class Scalar>
91 CO2Tables<Scalar, GpuView>
92 make_view(CO2Tables<Scalar, GpuBuffer>& oldCO2Tables) {
93 return CO2Tables<Scalar, GpuView>(
94 make_view(oldCO2Tables.tabulatedEnthalpy),
95 make_view(oldCO2Tables.tabulatedDensity)
99 template <
class Scalar>
100 CO2Tables<Scalar, GpuBuffer>
101 copy_to_gpu(
const CO2Tables<Scalar>& oldCO2Tables) {
102 return CO2Tables<Scalar, GpuBuffer>(
PiecewiseLinearTwoPhaseMaterialParams< TraitsT, GPUContainerType > copy_to_gpu(const PiecewiseLinearTwoPhaseMaterialParams< TraitsT > ¶ms)
Move a PiecewiseLinearTwoPhaseMaterialParams-object to the GPU.
Definition PiecewiseLinearTwoPhaseMaterialParams.hpp:285
Convience header to include the gpuistl headers if HAVE_CUDA is defined.
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30
Definition CO2Tables.hpp:36
Definition CO2Tables.hpp:49