]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a comment. 18006/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 16 Jan 2025 16:33:14 +0000 (09:33 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 16 Jan 2025 16:33:48 +0000 (09:33 -0700)
source/distributed/tria.cc

index 35d91fd7860def1f75bb2f9f00389bc4ac0b64bc..df0304cf6ff478d3f2a4e91cc851458624fceb48 100644 (file)
@@ -1775,11 +1775,12 @@ namespace parallel
     DEAL_II_CXX20_REQUIRES((concepts::is_valid_dim_spacedim<dim, spacedim>))
     Triangulation<dim, spacedim>::~Triangulation()
     {
-      // virtual functions called in constructors and destructors never use the
-      // override in a derived class
-      // for clarity be explicit on which function is called
       try
         {
+          // Calling virtual functions in constructors and destructors
+          // is not entirely intuitive and may not result in what one
+          // expects. For clarity be explicit on which function is
+          // called:
           parallel::distributed::Triangulation<dim, spacedim>::clear();
         }
       catch (...)

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.