From: Daniel Garcia-Sanchez Date: Thu, 25 Apr 2019 17:55:22 +0000 (+0200) Subject: Remove destructor X-Git-Tag: v9.1.0-rc1~174^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7964%2Fhead;p=dealii.git Remove destructor --- diff --git a/examples/step-40/step-40.cc b/examples/step-40/step-40.cc index 343b416efe..412c971f45 100644 --- a/examples/step-40/step-40.cc +++ b/examples/step-40/step-40.cc @@ -151,7 +151,6 @@ namespace Step40 { public: LaplaceProblem(); - ~LaplaceProblem(); void run(); @@ -166,8 +165,8 @@ namespace Step40 parallel::distributed::Triangulation triangulation; - DoFHandler dof_handler; FE_Q fe; + DoFHandler dof_handler; IndexSet locally_owned_dofs; IndexSet locally_relevant_dofs; @@ -185,7 +184,7 @@ namespace Step40 // @sect3{The LaplaceProblem class implementation} - // @sect4{Constructors and destructors} + // @sect4{Constructor} // Constructors and destructors are rather trivial. In addition to what we // do in step-6, we set the set of processors we want to work on to all @@ -202,8 +201,8 @@ namespace Step40 typename Triangulation::MeshSmoothing( Triangulation::smoothing_on_refinement | Triangulation::smoothing_on_coarsening)) - , dof_handler(triangulation) , fe(2) + , dof_handler(triangulation) , pcout(std::cout, (Utilities::MPI::this_mpi_process(mpi_communicator) == 0)) , computing_timer(mpi_communicator, @@ -214,13 +213,6 @@ namespace Step40 - template - LaplaceProblem::~LaplaceProblem() - { - dof_handler.clear(); - } - - // @sect4{LaplaceProblem::setup_system} // The following function is, arguably, the most interesting one in the