]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add function clear to release stored objects
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 10 Jan 2003 11:21:53 +0000 (11:21 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 10 Jan 2003 11:21:53 +0000 (11:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@6907 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 551b74816d9e596547c766f58df178a44d87e811..052bfc24c07228e3c54dc698134c73827f7d26ed 100644 (file)
@@ -53,6 +53,11 @@ class MGCoarseGridLACIteration :  public MGCoarseGrid<VECTOR>
     void initialize (SOLVER        &,
                     const MATRIX  &,
                     const PRECOND &);
+
+                                    /**
+                                     * Clear all pointers.
+                                     */
+    void clear ();
     
                                     /**
                                      * Implementation of the abstract
@@ -135,6 +140,17 @@ MGCoarseGridLACIteration<SOLVER, MATRIX, PRECOND, VECTOR>
 };
 
 
+template<class SOLVER, class MATRIX, class PRECOND, class VECTOR>
+void
+MGCoarseGridLACIteration<SOLVER, MATRIX, PRECOND, VECTOR>
+::clear()
+{
+  solver = 0;
+  matrix = 0;
+  precondition = 0;
+};
+
+
 template<class SOLVER, class MATRIX, class PRECOND, class VECTOR>
 void
 MGCoarseGridLACIteration<SOLVER, MATRIX, PRECOND, 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.