From 64047a152d3e36bb1145cfd0c02b1f22408784a3 Mon Sep 17 00:00:00 2001 From: Willem Deconinck Date: Fri, 31 Jan 2025 13:44:17 +0100 Subject: [PATCH] Fix SparseMatrixStorage constructor from SparseMatrixView --- src/atlas/linalg/sparse/SparseMatrixStorage.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/atlas/linalg/sparse/SparseMatrixStorage.h b/src/atlas/linalg/sparse/SparseMatrixStorage.h index 624c09664..eec2f564d 100644 --- a/src/atlas/linalg/sparse/SparseMatrixStorage.h +++ b/src/atlas/linalg/sparse/SparseMatrixStorage.h @@ -186,9 +186,9 @@ class SparseMatrixStorage { template SparseMatrixStorage::SparseMatrixStorage(const SparseMatrixView& host_view) { - nnz_ = host_view.nnz_; - rows_ = host_view.rows_; - cols_ = host_view.cols_; + nnz_ = host_view.nnz(); + rows_ = host_view.rows(); + cols_ = host_view.cols(); outer_.reset(atlas::array::Array::create(host_view.outer_size())); inner_.reset(atlas::array::Array::create(host_view.inner_size())); value_.reset(atlas::array::Array::create(host_view.value_size()));