]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
add default constructor for MGDoFHandler
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 28 Nov 2010 23:20:00 +0000 (23:20 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 28 Nov 2010 23:20:00 +0000 (23:20 +0000)
git-svn-id: https://svn.dealii.org/trunk@22870 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/multigrid/mg_dof_handler.h
deal.II/source/multigrid/mg_dof_handler.cc

index 2f863820baeff5259ef2cd4ff6644a50a7719707..f3422762d8bdf0b2de08daf8f8856a5f1137fad8 100644 (file)
@@ -88,6 +88,13 @@ class MGDoFHandler : public DoFHandler<dim,spacedim>
 
     static const unsigned int space_dimension = spacedim;
 
+                                    /**
+                                     * Default constructor, which
+                                     * will require a call to
+                                     * initialize() later to set the Triangulation.
+                                     */
+    MGDoFHandler ();
+
                                     /**
                                      * Constructor. Take @p tria as
                                      * the triangulation to work on.
@@ -98,7 +105,7 @@ class MGDoFHandler : public DoFHandler<dim,spacedim>
                                      * Destructor
                                      */
     virtual ~MGDoFHandler ();
-
+    
                                     /**
                                      * Go through the triangulation
                                      * and distribute the degrees of
index a1628dadf1d9bdd3ccc466d0a9229a5940d4d012..d69d45da8111620e552194cbe0470a69dceef33e 100644 (file)
@@ -837,6 +837,14 @@ template <int dim, int spacedim>
 const unsigned int MGDoFHandler<dim,spacedim>::dimension;
 
 
+template <int dim, int spacedim>
+MGDoFHandler<dim,spacedim>::MGDoFHandler ()
+               :
+               mg_faces (NULL)
+{}
+
+
+
 template <int dim, int spacedim>
 MGDoFHandler<dim,spacedim>::MGDoFHandler (const Triangulation<dim,spacedim> &tria)
                :
@@ -851,7 +859,6 @@ MGDoFHandler<dim,spacedim>::MGDoFHandler (const Triangulation<dim,spacedim> &tri
 }
 
 
-
 template <int dim, int spacedim>
 MGDoFHandler<dim,spacedim>::~MGDoFHandler ()
 {
@@ -1967,7 +1974,7 @@ set_dof_index (const unsigned int obj_level,
 template <int dim, int spacedim>
 void MGDoFHandler<dim,spacedim>::distribute_dofs (const FiniteElement<dim,spacedim> &fe,
                                         const unsigned int        offset)
-{
+{  
                                   // first distribute global dofs
   DoFHandler<dim,spacedim>::distribute_dofs (fe);
 

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.