* using it.
*/
void clear ();
+
+ /**
+ * Sets the mesh smoothing to @p
+ * mesh_smoothing. This overrides
+ * the MeshSmoothing given to the
+ * constructor. It is allow to
+ * call this function only if
+ * triangulation is empty.
+ */
+ void set_mesh_smoothing(const MeshSmoothing mesh_smoothing);
/**
* If @p dim==spacedim, assign a boundary
// $Id$
// Version: $Name$
//
-// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by the deal.II authors
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
}
+
+template <int dim, int spacedim>
+void
+Triangulation<dim, spacedim>::set_mesh_smoothing(const MeshSmoothing mesh_smoothing)
+{
+ Assert (n_levels() == 0, ExcTriangulationNotEmpty ());
+ smooth_grid=mesh_smoothing;
+}
+
+
+
template <int dim, int spacedim>
void
Triangulation<dim, spacedim>::set_boundary (const unsigned int number,
<h3>base</h3>
<ol>
+ <li>
+ <p>
+ Improved: The gamma function now returns a long double instead of an
+ unsigned int, otherwise we will get an overflow and thus meaningless
+ weights for higher QGaussLobatto quadrature rules.
+ <br>
+ (Tobias Leicht, RH 2009/06/05)
+ </p>
+ </li>
+
<li>
<p>
New: The new function Utilities::duplicate_communicator can be used
<h3>deal.II</h3>
<ol>
+ <li>
+ <p>
+ New: For empty triangulations the new Triangulation::set_mesh_smoothing
+ function allows to override the MeshSmoothing given to the constructor.
+ <br>
+ (RH 2009/06/05)
+ </p>
+ </li>
+
<li>
<p>
New: The new function TriaAccessor::is_translation_of computes