]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Deprecated set_manifold. Added reset_all_manifolds.
authorLuca Heltai <luca.heltai@sissa.it>
Sat, 14 Apr 2018 14:46:57 +0000 (14:46 +0000)
committerLuca Heltai <luca.heltai@sissa.it>
Sat, 14 Apr 2018 14:46:57 +0000 (14:46 +0000)
include/deal.II/grid/tria.h
source/grid/tria.cc

index 2879e2c2c14e4be6f48549692f262c8893be46f3..ab771267cd0e81ec819eb40f8e23949967cb8d0c 100644 (file)
@@ -1732,7 +1732,7 @@ public:
    * @ingroup boundary
    *
    * @deprecated This method has been deprecated. Use
-   * Triangulation::set_manifold() instead.
+   * Triangulation::reset_manifold() instead.
    *
    * @see
    * @ref GlossBoundaryIndicator "Glossary entry on boundary indicators"
@@ -1755,8 +1755,7 @@ public:
    * It is possible to remove or replace the boundary object during the
    * lifetime of a non-empty triangulation. Usually, this is done before the
    * first refinement and is dangerous afterwards. Removal of a manifold
-   * object is done by <tt>set_manifold(number)</tt>, i.e. the function of
-   * same name but only one argument. This operation then replaces the
+   * object is done by reset_manifold(). This operation then replaces the
    * manifold object given before by a straight manifold approximation.
    *
    * @ingroup manifold
@@ -1769,18 +1768,48 @@ public:
 
 
   /**
-   * Reset those parts of the triangulation with the given manifold_id to use
-   * a FlatManifold object. This is the default state of a triangulation, and
-   * undoes assignment of a different Manifold object by the function of same
-   * name and two arguments.
+   * Reset those parts of the triangulation with the given manifold_id
+   * to use a FlatManifold object. This is the default state of a
+   * non-curved triangulation, and undoes assignment of a different
+   * Manifold object by the function of same name and two arguments.
    *
    * @ingroup manifold
    *
+   * @deprecated This method has been deprecated. Use
+   * Triangulation::reset_manifold() instead.
+   *
    * @see
    * @ref GlossManifoldIndicator "Glossary entry on manifold indicators"
    */
+  DEAL_II_DEPRECATED
   void set_manifold (const types::manifold_id number);
 
+  /**
+   * Reset those parts of the triangulation with the given manifold_id
+   * to use a FlatManifold object. This is the default state of a
+   * non-curved triangulation, and undoes assignment of a different
+   * Manifold object by the function Triangulation::set_manifold()
+   *
+   * @ingroup manifold
+   *
+   * @see
+   * @ref GlossManifoldIndicator "Glossary entry on manifold indicators"
+   */
+  void reset_manifold (const types::manifold_id number);
+
+  /**
+   * Reset all parts of the trianuglation, regardless of their
+   * manifold_id, to use a FlatManifold object. This undoes assignment
+   * of all Manifold objects by the function
+   * Triangulation::set_manifold()
+   *
+   * @ingroup manifold
+   *
+   * @see
+   * @ref GlossManifoldIndicator "Glossary entry on manifold indicators"
+   */
+  void reset_all_manifolds ();
+
   /**
    * Set the manifold_id of all cells and faces to the given argument.
    *
index dd31de1966f23ad8e954edfd3ad35f1a53a3ae89..693d00d854ecaa061089123e5724b4235b050840 100644 (file)
@@ -8973,6 +8973,13 @@ Triangulation<dim, spacedim>::set_boundary (const types::manifold_id m_number)
 template <int dim, int spacedim>
 void
 Triangulation<dim, spacedim>::set_manifold (const types::manifold_id m_number)
+{
+  reset_manifold(m_number);
+}
+
+
+template<int dim, int spacedim>
+void Triangulation<dim, spacedim>::reset_manifold(const types::manifold_id m_number)
 {
   Assert(m_number < numbers::invalid_manifold_id,
          ExcIndexRange(m_number,0,numbers::invalid_manifold_id));
@@ -8981,6 +8988,14 @@ Triangulation<dim, spacedim>::set_manifold (const types::manifold_id m_number)
   manifold.erase(m_number);
 }
 
+
+template<int dim, int spacedim>
+void Triangulation<dim, spacedim>::reset_all_manifolds()
+{
+  manifold.clear();
+}
+
+
 template <int dim, int spacedim>
 void
 Triangulation<dim, spacedim>::set_all_manifold_ids (const types::manifold_id m_number)

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.