From 19dd868d25560b6c4342a78c64e1ae26ec1e33c0 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 7 Mar 2024 08:56:31 -0700 Subject: [PATCH] Address a warning. --- include/deal.II/lac/trilinos_tpetra_sparse_matrix.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/deal.II/lac/trilinos_tpetra_sparse_matrix.h b/include/deal.II/lac/trilinos_tpetra_sparse_matrix.h index 209f45780e..b8ff39fe34 100644 --- a/include/deal.II/lac/trilinos_tpetra_sparse_matrix.h +++ b/include/deal.II/lac/trilinos_tpetra_sparse_matrix.h @@ -1914,8 +1914,8 @@ namespace LinearAlgebra SparseMatrix::in_local_range( const size_type index) const { - auto begin = matrix->getRowMap()->getMinGlobalIndex(); - auto end = matrix->getRowMap()->getMaxGlobalIndex() + 1; + const size_type begin = matrix->getRowMap()->getMinGlobalIndex(); + const size_type end = matrix->getRowMap()->getMaxGlobalIndex() + 1; return ((index >= begin) && (index < end)); } -- 2.39.5