From: Wolfgang Bangerth Date: Thu, 7 Mar 2024 15:56:31 +0000 (-0700) Subject: Address a warning. X-Git-Tag: v9.6.0-rc1~501^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16729%2Fhead;p=dealii.git Address a warning. --- 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)); }