From 22e4e8dda39298264814b7247cbae1439a3dc245 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 6 Dec 1999 08:08:31 +0000 Subject: [PATCH] Add another constructor to the DoFHandler, since the old one was rather outdated. git-svn-id: https://svn.dealii.org/trunk@1979 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/dofs/dof_handler.h | 11 +++++++++++ deal.II/deal.II/source/dofs/dof_handler.cc | 8 ++++++++ 2 files changed, 19 insertions(+) diff --git a/deal.II/deal.II/include/dofs/dof_handler.h b/deal.II/deal.II/include/dofs/dof_handler.h index ae357b1e3d..533a502954 100644 --- a/deal.II/deal.II/include/dofs/dof_handler.h +++ b/deal.II/deal.II/include/dofs/dof_handler.h @@ -311,6 +311,17 @@ class DoFHandler : public Subscriptor, */ DoFHandler (Triangulation *tria); + /** + * Constructor. Does the same + * thing as the one above, but + * takes a reference instead of a + * pointer. The pointer form is + * the older one, but the one + * encouraged for use now is this + * one. + */ + DoFHandler (Triangulation &tria); + /** * Destructor. */ diff --git a/deal.II/deal.II/source/dofs/dof_handler.cc b/deal.II/deal.II/source/dofs/dof_handler.cc index 5501a2749f..d574d5cf0d 100644 --- a/deal.II/deal.II/source/dofs/dof_handler.cc +++ b/deal.II/deal.II/source/dofs/dof_handler.cc @@ -31,6 +31,14 @@ DoFHandler::DoFHandler (Triangulation *tria) : }; +template +DoFHandler::DoFHandler (Triangulation &tria) : + tria(&tria), + used_dofs (0) +{}; + + + template DoFHandler::~DoFHandler () {}; -- 2.39.5