]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Change a detail for better understandability.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 24 Nov 1999 13:28:24 +0000 (13:28 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 24 Nov 1999 13:28:24 +0000 (13:28 +0000)
git-svn-id: https://svn.dealii.org/trunk@1942 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 95d9bfd3bb534fd3d9cfe1c0df984faed4b59e79..4eea08f89cc4c805880084e10757b3d5e9876d54 100644 (file)
@@ -1334,14 +1334,14 @@ class DoFHandler  :  public Subscriptor,
                    << "is invalid with respect to the number "
                    << "of components in the finite element "
                    << "(" << arg2 << ")");
-    
+
   protected:
     
                                     /**
                                      * Address of the triangulation to
                                      * work on.
                                      */
-    Triangulation<dim> * const tria;
+    SmartPointer<Triangulation<dim> > tria;
 
                                     /**
                                      * Store a pointer to the finite element
index cda55b95f64d9e89fba0cf98530c8cdfb7523407..72131e8598e99ef93bc19b26e5981dec681e739b 100644 (file)
@@ -27,14 +27,13 @@ DoFHandler<dim>::DoFHandler (Triangulation<dim> *tria) :
                tria(tria),
                used_dofs (0)
 {
-  tria->subscribe ();
+  Assert (tria != 0, ExcInvalidTriangulation());
 };
 
 
 template <int dim>
-DoFHandler<dim>::~DoFHandler () {
-  tria->unsubscribe ();
-}
+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.