From: kanschat Date: Thu, 17 Jun 2010 23:45:51 +0000 (+0000) Subject: Change order of object and pointer to it to avoid crash X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86db324063c24c11a80defd59ebb374b8a52b5d6;p=dealii-svn.git Change order of object and pointer to it to avoid crash git-svn-id: https://svn.dealii.org/trunk@21223 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/multigrid/mg_smoother.h b/deal.II/deal.II/include/multigrid/mg_smoother.h index a08409466f..39e496d89f 100644 --- a/deal.II/deal.II/include/multigrid/mg_smoother.h +++ b/deal.II/deal.II/include/multigrid/mg_smoother.h @@ -107,6 +107,14 @@ class MGSmoother : public MGSmootherBase */ void set_debug (const unsigned int level); + private: + /** + * The memory object to be used + * if none is given to the + * constructor. + */ + GrowingVectorMemory my_memory; + protected: /** * Number of smoothing steps on @@ -153,8 +161,6 @@ class MGSmoother : public MGSmootherBase */ SmartPointer, MGSmoother > mem; - private: - GrowingVectorMemory my_memory; };