From 8099ed505442a65f9614a5d6535b2553640c65e6 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Sat, 2 Jun 2001 17:52:54 +0000 Subject: [PATCH] eliminate copy constructors and some more documentation git-svn-id: https://svn.dealii.org/trunk@4740 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/schur_matrix.h | 27 +++++++++++++++++++++++++- deal.II/lac/include/lac/solver_gmres.h | 6 ++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/deal.II/lac/include/lac/schur_matrix.h b/deal.II/lac/include/lac/schur_matrix.h index 45deeca3a6..3a7255e916 100644 --- a/deal.II/lac/include/lac/schur_matrix.h +++ b/deal.II/lac/include/lac/schur_matrix.h @@ -141,10 +141,34 @@ class SchurMatrix : const BlockVector& src, const BlockVector& rhs) const; private: + /** + * No copy constructor. + */ + SchurMatrix (const SchurMatrix&); + /** + * No assignment. + */ + SchurMatrix& operator = (const SchurMatrix&); + + /** + * Pointer to inverse of upper left block. + */ const SmartPointer Ainv; + /** + * Pointer to lower left block. + */ const SmartPointer B; + /** + * Pointer to transpose of upper right block. + */ const SmartPointer Dt; + /** + * Pointer to lower right block. + */ const SmartPointer C; + /** + * Auxiliary memory for vectors. + */ VectorMemory >& mem; }; @@ -156,7 +180,8 @@ SchurMatrix const MC& C, VectorMemory >& mem) : Ainv(&Ainv), B(&B), Dt(&Dt), C(&C), mem(mem) -{} +{ +} template diff --git a/deal.II/lac/include/lac/solver_gmres.h b/deal.II/lac/include/lac/solver_gmres.h index 73dcd35b2f..b5a4103754 100644 --- a/deal.II/lac/include/lac/solver_gmres.h +++ b/deal.II/lac/include/lac/solver_gmres.h @@ -151,6 +151,12 @@ class SolverGMRES : public Subscriptor, private Solver * Auxiliary matrix for inverting @p{H} */ FullMatrix H1; + + private: + /** + * No copy constructor. + */ + SolverGMRES (const SolverGMRES&); }; -- 2.39.5