]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid using the deprecated row_iterator types of sparsity patterns. Replace them...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 22 Apr 2015 12:12:19 +0000 (07:12 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 23 Apr 2015 11:42:54 +0000 (06:42 -0500)
source/lac/sparsity_pattern.cc

index dcfed47bda1410c3a8371acd5b6f266357d56b0f..7b5d3f8c9e1a08ebf51316d0a75eea423fa488cb 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2000 - 2014 by the deal.II authors
+// Copyright (C) 2000 - 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -505,12 +505,12 @@ SparsityPattern::copy_from (const DSP &dsp)
     for (size_type row = 0; row<dsp.n_rows(); ++row)
       {
         size_type *cols = &colnums[rowstart[row]] + (do_diag_optimize ? 1 : 0);
-        typename DSP::row_iterator col_num = dsp.row_begin (row),
-                                   end_row = dsp.row_end (row);
+        typename DSP::iterator col_num = dsp.begin (row),
+                               end_row = dsp.end (row);
 
         for (; col_num != end_row; ++col_num)
           {
-            const size_type col = *col_num;
+            const size_type col = col_num->column();
             if ((col!=row) || !do_diag_optimize)
               *cols++ = col;
           }

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.