]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
eliminate copy constructors and some more documentation
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 2 Jun 2001 17:52:54 +0000 (17:52 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 2 Jun 2001 17:52:54 +0000 (17:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@4740 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/schur_matrix.h
deal.II/lac/include/lac/solver_gmres.h

index 45deeca3a69d4c7a691d798ac246d58c4f4b8bdd..3a7255e9161903424096cd5b8e51cd8da74641d9 100644 (file)
@@ -141,10 +141,34 @@ class SchurMatrix :
                    const BlockVector<double>& src,
                    const BlockVector<double>& rhs) const;
   private:
+                                  /**
+                                   * No copy constructor.
+                                   */
+  SchurMatrix (const SchurMatrix<MA_inverse, MB, MDt, MC>&);
+                                  /**
+                                   * No assignment.
+                                   */
+  SchurMatrix& operator = (const SchurMatrix<MA_inverse, MB, MDt, MC>&);
+
+                                  /**
+                                   * Pointer to inverse of upper left block.
+                                   */
   const SmartPointer<const MA_inverse> Ainv;
+                                  /**
+                                   * Pointer to lower left block.
+                                   */
   const SmartPointer<const MB> B;
+                                  /**
+                                   * Pointer to transpose of upper right block.
+                                   */
   const SmartPointer<const MDt> Dt;
+                                  /**
+                                   * Pointer to lower right block.
+                                   */
   const SmartPointer<const MC> C;
+                                  /**
+                                   * Auxiliary memory for vectors.
+                                   */
   VectorMemory<BlockVector<double> >& mem;
 };
 
@@ -156,7 +180,8 @@ SchurMatrix<MA_inverse, MB, MDt, MC>
              const MC& C,
              VectorMemory<BlockVector<double> >& mem)
   : Ainv(&Ainv), B(&B), Dt(&Dt), C(&C), mem(mem)
-{}
+{
+}
 
 
 template <class MA_inverse, class MB, class MDt, class MC>
index 73dcd35b2f0a17673f7076c73f7195eb2a25453f..b5a4103754d84e67131eb13fcf95ca0df924b0a2 100644 (file)
@@ -151,6 +151,12 @@ class SolverGMRES : public Subscriptor, private Solver<VECTOR>
                                    * Auxiliary matrix for inverting @p{H}
                                    */
   FullMatrix<double> H1;
+
+  private:
+                                  /**
+                                   * No copy constructor.
+                                   */
+  SolverGMRES (const SolverGMRES<VECTOR>&);
 };
 
 

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.