]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Provide a copy constructor for the accessor class. This should make
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 30 Sep 2013 13:26:36 +0000 (13:26 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 30 Sep 2013 13:26:36 +0000 (13:26 +0000)
Intel ICC happy.

git-svn-id: https://svn.dealii.org/trunk@31028 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/petsc_matrix_base.h

index 6ef2b515961bb3cdc3ee9ea6b4e97e9a4a1f3984..8a649194801c4ad3ef5238a8269a0f01125a551c 100644 (file)
@@ -84,6 +84,11 @@ namespace PETScWrappers
                   const size_type   row,
                   const size_type   index);
 
+       /**
+        * Copy constructor.
+        */
+       Accessor (const Accessor &a);
+
         /**
          * Row number of the element
          * represented by this
@@ -1364,6 +1369,18 @@ namespace PETScWrappers
     }
 
 
+    inline
+    const_iterator::Accessor::
+    Accessor (const Accessor &a)
+      :
+      matrix(a.matrix),
+      a_row(a.a_row),
+      a_index(a.a_index),
+      colnum_cache (a.colnum_cache),
+      value_cache (a.value_cache)
+    {}
+
+
     inline
     const_iterator::Accessor::size_type
     const_iterator::Accessor::row() const

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.