]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove destructor 7964/head
authorDaniel Garcia-Sanchez <daniel.garcia-sanchez@insp.upmc.fr>
Thu, 25 Apr 2019 17:55:22 +0000 (19:55 +0200)
committerDaniel Garcia-Sanchez <daniel.garcia-sanchez@insp.upmc.fr>
Thu, 25 Apr 2019 17:55:22 +0000 (19:55 +0200)
examples/step-40/step-40.cc

index 343b416efe695fd7f9c7d35824d2543cc5f4429a..412c971f45a6423088f7daa4ffc4fcb74995eee0 100644 (file)
@@ -151,7 +151,6 @@ namespace Step40
   {
   public:
     LaplaceProblem();
-    ~LaplaceProblem();
 
     void run();
 
@@ -166,8 +165,8 @@ namespace Step40
 
     parallel::distributed::Triangulation<dim> triangulation;
 
-    DoFHandler<dim> dof_handler;
     FE_Q<dim>       fe;
+    DoFHandler<dim> dof_handler;
 
     IndexSet locally_owned_dofs;
     IndexSet locally_relevant_dofs;
@@ -185,7 +184,7 @@ namespace Step40
 
   // @sect3{The <code>LaplaceProblem</code> 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<dim>::MeshSmoothing(
                       Triangulation<dim>::smoothing_on_refinement |
                       Triangulation<dim>::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 <int dim>
-  LaplaceProblem<dim>::~LaplaceProblem()
-  {
-    dof_handler.clear();
-  }
-
-
   // @sect4{LaplaceProblem::setup_system}
 
   // The following function is, arguably, the most interesting one in the

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.