]> https://gitweb.dealii.org/ - dealii.git/commitdiff
disable TrilinosWrappers::SparseMatrix copy constructor and operator=
authorTimo Heister <timo.heister@gmail.com>
Mon, 12 Jan 2015 16:29:34 +0000 (11:29 -0500)
committerTimo Heister <timo.heister@gmail.com>
Mon, 12 Jan 2015 18:10:35 +0000 (13:10 -0500)
include/deal.II/lac/trilinos_sparse_matrix.h
source/lac/trilinos_sparse_matrix.cc

index 52e351840805eab5ab046f3765303890c058eca9..f2de34c71a9322b5cf0f1c9e0db081e759fbad15 100644 (file)
@@ -561,12 +561,6 @@ namespace TrilinosWrappers
      */
     SparseMatrix (const SparsityPattern &InputSparsityPattern);
 
-    /**
-     * Copy constructor. Sets the calling matrix to be the same as the input
-     * matrix, i.e., using the same sparsity pattern and entries.
-     */
-    SparseMatrix (const SparseMatrix &InputMatrix);
-
     /**
      * Destructor. Made virtual so that one can use pointers to this class.
      */
@@ -1843,6 +1837,14 @@ namespace TrilinosWrappers
 
 
   private:
+    /**
+     * Copy constructor is disabled.
+     */
+    SparseMatrix (const SparseMatrix &);
+    /**
+     * operator= is disabled.
+     */
+    SparseMatrix &operator = (const SparseMatrix &);
 
     /**
      * Pointer to the user-supplied Epetra Trilinos mapping of the matrix
index ab4b29bc927885b1dd94ba3ee81e51b80b16ee5e..0cdafb5eb203a43766b39e720e71ece08d1569d5 100644 (file)
@@ -370,17 +370,6 @@ namespace TrilinosWrappers
 
 
 
-  SparseMatrix::SparseMatrix (const SparseMatrix &input_matrix)
-    :
-    Subscriptor(),
-    column_space_map (new Epetra_Map (input_matrix.domain_partitioner())),
-    matrix (new Epetra_FECrsMatrix(*input_matrix.matrix)),
-    last_action (Zero),
-    compressed (true)
-  {}
-
-
-
   SparseMatrix::~SparseMatrix ()
   {}
 

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.