From da1fc063ca5954ed56cf85f39824a2f8b57f70f5 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 24 Nov 1999 13:28:24 +0000 Subject: [PATCH] Change a detail for better understandability. git-svn-id: https://svn.dealii.org/trunk@1942 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/dofs/dof_handler.h | 4 ++-- deal.II/deal.II/source/dofs/dof_handler.cc | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) 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 () +{}; -- 2.39.5