]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add another constructor to the DoFHandler, since the old one was rather outdated.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 6 Dec 1999 08:08:31 +0000 (08:08 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 6 Dec 1999 08:08:31 +0000 (08:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@1979 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/dofs/dof_handler.h
deal.II/deal.II/source/dofs/dof_handler.cc

index ae357b1e3d25f009207665c5303049702efd78b4..533a50295432debe255ffe01436a847a38b39b63 100644 (file)
@@ -311,6 +311,17 @@ class DoFHandler  :  public Subscriptor,
                                      */
     DoFHandler (Triangulation<dim> *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<dim> &tria);
+    
                                     /**
                                      * Destructor.
                                      */
index 5501a2749ffe5783086e18ca3efff863c78c4b36..d574d5cf0d86aa231dc3c32736266122eb0869fb 100644 (file)
@@ -31,6 +31,14 @@ DoFHandler<dim>::DoFHandler (Triangulation<dim> *tria) :
 };
 
 
+template <int dim>
+DoFHandler<dim>::DoFHandler (Triangulation<dim> &tria) :
+               tria(&tria),
+               used_dofs (0)
+{};
+
+
+
 template <int dim>
 DoFHandler<dim>::~DoFHandler ()
 {};

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.