From 33c8ba028745c88541b41ee4b95fbb04a1d5090c Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 16 Jan 2025 09:33:14 -0700 Subject: [PATCH] Fix a comment. --- source/distributed/tria.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/distributed/tria.cc b/source/distributed/tria.cc index 35d91fd786..df0304cf6f 100644 --- a/source/distributed/tria.cc +++ b/source/distributed/tria.cc @@ -1775,11 +1775,12 @@ namespace parallel DEAL_II_CXX20_REQUIRES((concepts::is_valid_dim_spacedim)) Triangulation::~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::clear(); } catch (...) -- 2.39.5