From: wolf Date: Wed, 24 Nov 1999 13:28:24 +0000 (+0000) Subject: Change a detail for better understandability. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da1fc063ca5954ed56cf85f39824a2f8b57f70f5;p=dealii-svn.git Change a detail for better understandability. git-svn-id: https://svn.dealii.org/trunk@1942 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/dofs/dof_handler.h b/deal.II/deal.II/include/dofs/dof_handler.h index 95d9bfd3bb..4eea08f89c 100644 --- a/deal.II/deal.II/include/dofs/dof_handler.h +++ b/deal.II/deal.II/include/dofs/dof_handler.h @@ -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 * const tria; + SmartPointer > tria; /** * Store a pointer to the finite element diff --git a/deal.II/deal.II/source/dofs/dof_handler.cc b/deal.II/deal.II/source/dofs/dof_handler.cc index cda55b95f6..72131e8598 100644 --- a/deal.II/deal.II/source/dofs/dof_handler.cc +++ b/deal.II/deal.II/source/dofs/dof_handler.cc @@ -27,14 +27,13 @@ DoFHandler::DoFHandler (Triangulation *tria) : tria(tria), used_dofs (0) { - tria->subscribe (); + Assert (tria != 0, ExcInvalidTriangulation()); }; template -DoFHandler::~DoFHandler () { - tria->unsubscribe (); -} +DoFHandler::~DoFHandler () +{};