]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Address a warning. 16729/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 7 Mar 2024 15:56:31 +0000 (08:56 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 7 Mar 2024 15:56:31 +0000 (08:56 -0700)
include/deal.II/lac/trilinos_tpetra_sparse_matrix.h

index 209f45780ef41628f59e2d767c3f5e8c63266037..b8ff39fe34fd52433ac775ec2444f516c34c312d 100644 (file)
@@ -1914,8 +1914,8 @@ namespace LinearAlgebra
     SparseMatrix<Number, MemorySpace>::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));
     }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.