From 86436cdd5c698834a65520925d79cec5e0ffb0a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Thu, 19 Dec 2024 12:56:14 +0100 Subject: [PATCH] Necessary to compile with my Hypre install. HYPRE_Bigint are 64 bit integers on some platforms by default, and can be configured as such in any case. The HYPRE API asks for HYPRE_BigInt* so it is better to use that type rather than int. --- opm/simulators/linalg/HyprePreconditioner.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/simulators/linalg/HyprePreconditioner.hpp b/opm/simulators/linalg/HyprePreconditioner.hpp index 067fe6e66..85306f863 100644 --- a/opm/simulators/linalg/HyprePreconditioner.hpp +++ b/opm/simulators/linalg/HyprePreconditioner.hpp @@ -393,7 +393,7 @@ private: HYPRE_BigInt* cols_device_ = nullptr; //!< Device array for column indices. HYPRE_Real* values_device_ = nullptr; //!< Device array for matrix values. - std::vector indices_; //!< Indices vector for copying vectors to/from Hypre. + std::vector indices_; //!< Indices vector for copying vectors to/from Hypre. HYPRE_BigInt* indices_device_ = nullptr; //!< Device array for indices. HYPRE_Int N_ = -1; //!< Number of rows in the matrix. HYPRE_Int nnz_ = -1; //!< Number of non-zero elements in the matrix.