19#ifndef OPM_COLORING_AND_REORDERING_UTILS_HPP
20#define OPM_COLORING_AND_REORDERING_UTILS_HPP
24#include <opm/common/ErrorMacros.hpp>
25#include <opm/grid/utility/SparseTable.hpp>
26#include <opm/simulators/linalg/gpuistl/detail/safe_conversion.hpp>
36inline std::vector<int>
44 fmt::format(
"Internal error. globCnt = {}, res.size() = {}",
globCnt,
res.size()));
51inline std::vector<int>
59 fmt::format(
"Internal error. globCnt = {}, res.size() = {}",
globCnt,
res.size()));
66template <
class M,
class field_type,
class GPUM>
67inline std::unique_ptr<GPUM>
78 return std::unique_ptr<GPUM>(
new auto(GPUM::fromMatrix(
reorderedMatrix,
true)));
81template <
class M,
class field_type,
class GPUM>
82inline std::tuple<std::unique_ptr<GPUM>, std::unique_ptr<GPUM>>
105 return {std::unique_ptr<GPUM>(
new auto(GPUM::fromMatrix(
reorderedLower,
true))),
106 std::unique_ptr<GPUM>(
new auto(GPUM::fromMatrix(
reorderedUpper,
true)))};
Definition BlackoilWellModel.hpp:83
Contains wrappers to make the CuBLAS library behave as a modern C++ library with function overlading.
Definition autotuner.hpp:29
__host__ __device__ std::size_t to_size_t(int i)
to_size_t converts a (on most relevant platforms) a 32 bit signed int to a 64 bits unsigned int
Definition safe_conversion.hpp:86
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242