]> https://gitweb.dealii.org/ - dealii.git/commitdiff
New Triangulation::set_mesh_smoothing function (5478).
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 5 Jun 2009 04:07:48 +0000 (04:07 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 5 Jun 2009 04:07:48 +0000 (04:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@18908 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/grid/tria.h
deal.II/deal.II/source/grid/tria.cc
deal.II/doc/news/changes.h

index 6bda44b5dadba75d63cfdcc5e6aab9bdc80e647f..499c592d15970a5d4d6288e99285ddbb269ffbec 100644 (file)
@@ -1430,6 +1430,16 @@ class Triangulation : public Subscriptor
                                      * 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
index 414e493ce3d17d2072bc81a5b2460539fecf8124..f16a9ce32f550cea8123d60ca67310d785b769e9 100644 (file)
@@ -2,7 +2,7 @@
 //    $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
@@ -9711,6 +9711,17 @@ void Triangulation<dim, spacedim>::clear ()
 }
 
 
+
+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,
index 7558e3ae7865a01c635e835929ee367550be0e0e..79123f86d36ba890f51e69f788c6d720b0bc173b 100644 (file)
@@ -93,6 +93,16 @@ inconvenience this causes.
 <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
@@ -125,6 +135,15 @@ inconvenience this causes.
 <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

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.