From 3ef20183d5204ba54057e52a93fba6c6cbabefa3 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Mon, 12 Jan 2015 11:29:34 -0500 Subject: [PATCH] disable TrilinosWrappers::SparseMatrix copy constructor and operator= --- include/deal.II/lac/trilinos_sparse_matrix.h | 14 ++++++++------ source/lac/trilinos_sparse_matrix.cc | 11 ----------- 2 files changed, 8 insertions(+), 17 deletions(-) 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 () {} -- 2.39.5