]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix initialization of unsigned integers.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 23 Feb 2009 04:17:53 +0000 (04:17 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 23 Feb 2009 04:17:53 +0000 (04:17 +0000)
git-svn-id: https://svn.dealii.org/trunk@18410 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/trilinos_sparse_matrix.cc

index 74de21cb8e94b9812c49a719bc20670b7acb1594..c22d34781da22b4a740730de3a8dfc4cfaec3c6c 100755 (executable)
@@ -651,7 +651,8 @@ namespace TrilinosWrappers
     for (unsigned int row=0; row<n_rows; ++row)
       {
        values.resize (n_entries_per_row[row],0.);
-       row_indices.resize (n_entries_per_row[row],-1);
+       row_indices.resize (n_entries_per_row[row],
+                           numbers::invalid_unsigned_int);
        
        unsigned int index = 0;
        for (dealii::SparseMatrix<double>::const_iterator  

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.