]> https://gitweb.dealii.org/ - dealii.git/commitdiff
TpetraWrappers: fix signed unsigned comparison warning
authorMatthias Maier <tamiko@43-1.org>
Thu, 18 Jan 2024 22:52:04 +0000 (16:52 -0600)
committerMatthias Maier <tamiko@43-1.org>
Thu, 18 Jan 2024 22:52:04 +0000 (16:52 -0600)
include/deal.II/lac/trilinos_tpetra_sparse_matrix.templates.h

index 451878c8d2425136505054f1385c4365b8d68991..d13fdac5ff2385fbd3386affc7b66fbe0ee70b60 100644 (file)
@@ -685,7 +685,7 @@ namespace LinearAlgebra
             {
               matrix->getLocalRowView(i, indices, values);
 
-              for (size_t j = 0; j < indices.size(); ++j)
+              for (size_type j = 0; j < indices.size(); ++j)
                 out << "(" << matrix->getRowMap()->getGlobalElement(i) << ","
                     << matrix->getColMap()->getGlobalElement(indices[j]) << ") "
                     << values[j] << std::endl;

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.