]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
standard constructor
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Oct 2003 07:25:36 +0000 (07:25 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Oct 2003 07:25:36 +0000 (07:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@8120 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/multigrid/mg_coarse.h

index cbb021f23cdb5c35d81736e2c2bee19650d6951d..93003f881e43fde313000db7c8e21f3f73637282 100644 (file)
@@ -120,12 +120,17 @@ class MGCoarseGridHouseholder : public MGCoarseGridBase<VECTOR>
                                      * Constructor, taking the coarse
                                      * grid matrix.
                                      */
-    MGCoarseGridHouseholder (const FullMatrix<number>& A);
+    MGCoarseGridHouseholder (const FullMatrix<number>* A = 0);
 
                                     /**
                                      * Initialize for a new matrix.
                                      */
     void initialize (const FullMatrix<number>& A);
+
+                                    /**
+                                     * Release matrix pointer.
+                                     */
+    void clear ();
     
                                     /**
                                      * Solution operator, defined in
@@ -230,9 +235,9 @@ MGCoarseGridLACIteration<SOLVER, MATRIX, PRECOND, VECTOR>
 
 template<typename number, class VECTOR>
 MGCoarseGridHouseholder<number, VECTOR>::MGCoarseGridHouseholder(
-  const FullMatrix<number>& A)
+  const FullMatrix<number>* A)
                :
-               matrix(&A)
+               matrix(A)
 {}
 
 
@@ -247,6 +252,15 @@ MGCoarseGridHouseholder<number, VECTOR>::initialize(
 
 
 
+template<typename number, class VECTOR>
+void
+MGCoarseGridHouseholder<number, VECTOR>::clear()
+{
+  matrix = 0;
+}
+
+
+
 template<typename number, class VECTOR>
 void
 MGCoarseGridHouseholder<number, VECTOR>::operator() (

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.