From: kanschat Date: Sun, 28 Nov 2010 23:20:00 +0000 (+0000) Subject: add default constructor for MGDoFHandler X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b215cf503109de016aa55278d9e55a95cd28e9a3;p=dealii-svn.git add default constructor for MGDoFHandler git-svn-id: https://svn.dealii.org/trunk@22870 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/multigrid/mg_dof_handler.h b/deal.II/include/deal.II/multigrid/mg_dof_handler.h index 2f863820ba..f3422762d8 100644 --- a/deal.II/include/deal.II/multigrid/mg_dof_handler.h +++ b/deal.II/include/deal.II/multigrid/mg_dof_handler.h @@ -88,6 +88,13 @@ class MGDoFHandler : public DoFHandler 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 * Destructor */ virtual ~MGDoFHandler (); - + /** * Go through the triangulation * and distribute the degrees of diff --git a/deal.II/source/multigrid/mg_dof_handler.cc b/deal.II/source/multigrid/mg_dof_handler.cc index a1628dadf1..d69d45da81 100644 --- a/deal.II/source/multigrid/mg_dof_handler.cc +++ b/deal.II/source/multigrid/mg_dof_handler.cc @@ -837,6 +837,14 @@ template const unsigned int MGDoFHandler::dimension; +template +MGDoFHandler::MGDoFHandler () + : + mg_faces (NULL) +{} + + + template MGDoFHandler::MGDoFHandler (const Triangulation &tria) : @@ -851,7 +859,6 @@ MGDoFHandler::MGDoFHandler (const Triangulation &tri } - template MGDoFHandler::~MGDoFHandler () { @@ -1967,7 +1974,7 @@ set_dof_index (const unsigned int obj_level, template void MGDoFHandler::distribute_dofs (const FiniteElement &fe, const unsigned int offset) -{ +{ // first distribute global dofs DoFHandler::distribute_dofs (fe);