]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Change order of object and pointer to it to avoid crash
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 17 Jun 2010 23:45:51 +0000 (23:45 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 17 Jun 2010 23:45:51 +0000 (23:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@21223 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/multigrid/mg_smoother.h

index a08409466fb1936231294c1c02f4755dd21e29eb..39e496d89fa15917e733ef0997988d1c3ec25c3b 100644 (file)
@@ -107,6 +107,14 @@ class MGSmoother : public MGSmootherBase<VECTOR>
                                      */
     void set_debug (const unsigned int level);
 
+  private:
+                                    /**
+                                     * The memory object to be used
+                                     * if none is given to the
+                                     * constructor.
+                                     */
+    GrowingVectorMemory<VECTOR> my_memory;
+    
   protected:
                                     /**
                                      * Number of smoothing steps on
@@ -153,8 +161,6 @@ class MGSmoother : public MGSmootherBase<VECTOR>
                                      */
     SmartPointer<VectorMemory<VECTOR>, MGSmoother<VECTOR> > mem;
 
-  private:
-    GrowingVectorMemory<VECTOR> my_memory;
 };
 
 

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.