// $Id$
// Version: $Name$
//
-// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 by the deal.II authors
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
* For an example see hpDoFHandler().
*/
class RefinementListener
- {
- public:
- virtual void pre_refinement_notification (const Triangulation<dim> &tria);
- virtual void post_refinement_notification (const Triangulation<dim> &tria);
- };
+ {
+ public:
+ /**
+ * Destructor. Does nothing, but is
+ * declared virtual because this
+ * class also has virtual functions.
+ */
+ virtual ~RefinementListener ();
+
+ /**
+ * Before refinement is actually
+ * performed, the triangulation class
+ * calls this method on all objects
+ * derived from this class and
+ * registered with the triangulation.
+ */
+ virtual
+ void
+ pre_refinement_notification (const Triangulation<dim> &tria);
+
+ /**
+ * After refinement is actually
+ * performed, the triangulation class
+ * calls this method on all objects
+ * derived from this class and
+ * registered with the triangulation.
+ */
+ virtual
+ void
+ post_refinement_notification (const Triangulation<dim> &tria);
+ };
/**
* Create a triangulation and create
// $Id$
// Version: $Name$
//
-// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 by the deal.II authors
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
}
-// Refinement listeners
+
+template<int dim>
+Triangulation<dim>::RefinementListener::~RefinementListener ()
+{}
+
+
+
+
template<int dim>
void Triangulation<dim>::
RefinementListener::pre_refinement_notification (const Triangulation<dim> &)
<h3>deal.II</h3>
<ol>
+ <li> <p>
+ Fixed: The class <code>Triangulation::RefinementListener</code> had only
+ virtual abstract functions but no virtual destructor. This caused
+ warnings with some compilers, and is generally bad practice
+ anyway. This is now fixed.
+ <br>
+ (WB, 2005/02/22)
+ </p>
+
<li> <p>
New: Function <code class="class">FETools</code>::<code
class="member">compute_embedding_matrices</code> allows for