From 6f89629f922e30d53bc32d817410523e468a7d48 Mon Sep 17 00:00:00 2001 From: Tong Dong Qiu Date: Fri, 25 Feb 2022 10:43:43 +0100 Subject: [PATCH] Fix wrong print, remove unused variables --- opm/simulators/linalg/bda/opencl/openclSolverBackend.cpp | 7 +------ opm/simulators/linalg/bda/opencl/openclSolverBackend.hpp | 2 -- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/opm/simulators/linalg/bda/opencl/openclSolverBackend.cpp b/opm/simulators/linalg/bda/opencl/openclSolverBackend.cpp index 57abba963..c9d91c029 100644 --- a/opm/simulators/linalg/bda/opencl/openclSolverBackend.cpp +++ b/opm/simulators/linalg/bda/opencl/openclSolverBackend.cpp @@ -393,15 +393,10 @@ void openclSolverBackend::initialize(std::shared_ptr useJacMatrix = true; } - if (useJacMatrix) { - this->jac_nnz = jacMatrix->nnzbs; - this->jac_nnzb = jac_nnz * block_size * block_size; - } - std::ostringstream out; out << "Initializing GPU, matrix size: " << Nb << " blockrows, nnzb: " << nnzb << "\n"; if (useJacMatrix) { - out << "Blocks in ILU matrix: " << jac_nnzb << "\n"; + out << "Blocks in ILU matrix: " << jacMatrix->nnzbs << "\n"; } out << "Maxit: " << maxit << std::scientific << ", tolerance: " << tolerance << "\n"; out << "PlatformID: " << platformID << ", deviceID: " << deviceID << "\n"; diff --git a/opm/simulators/linalg/bda/opencl/openclSolverBackend.hpp b/opm/simulators/linalg/bda/opencl/openclSolverBackend.hpp index ddfb1fc24..cc9eb4fe0 100644 --- a/opm/simulators/linalg/bda/opencl/openclSolverBackend.hpp +++ b/opm/simulators/linalg/bda/opencl/openclSolverBackend.hpp @@ -63,8 +63,6 @@ private: std::vector devices; - int jac_nnz; - int jac_nnzb; bool useJacMatrix = false; std::unique_ptr > prec;