From: Timo Heister Date: Mon, 12 Jan 2015 16:29:34 +0000 (-0500) Subject: disable TrilinosWrappers::SparseMatrix copy constructor and operator= X-Git-Tag: v8.3.0-rc1~553^2~5 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ef20183d5204ba54057e52a93fba6c6cbabefa3;p=dealii.git disable TrilinosWrappers::SparseMatrix copy constructor and operator= --- diff --git a/include/deal.II/lac/trilinos_sparse_matrix.h b/include/deal.II/lac/trilinos_sparse_matrix.h index 52e3518408..f2de34c71a 100644 --- a/include/deal.II/lac/trilinos_sparse_matrix.h +++ b/include/deal.II/lac/trilinos_sparse_matrix.h @@ -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 diff --git a/source/lac/trilinos_sparse_matrix.cc b/source/lac/trilinos_sparse_matrix.cc index ab4b29bc92..0cdafb5eb2 100644 --- a/source/lac/trilinos_sparse_matrix.cc +++ b/source/lac/trilinos_sparse_matrix.cc @@ -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 () {}