]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Triangulation: include compatibility CellStatus via using instead of defining a new...
authorMatthias Maier <tamiko@43-1.org>
Mon, 10 Jul 2023 20:40:35 +0000 (15:40 -0500)
committerMatthias Maier <tamiko@43-1.org>
Mon, 10 Jul 2023 23:40:15 +0000 (18:40 -0500)
include/deal.II/grid/tria.h

index e3d0a40b80dca91d36bd6451bc738fc221014299..5762c30698e0bf67e64eeefe290fcd22a2c3c228 100644 (file)
@@ -2226,26 +2226,18 @@ public:
   /** @} */
 
   /**
-   * Alias for backward compatibility.
-   *
-   * @deprecated This enumeration has been moved to the global namespace.
-   * Use ::dealii::CellStatus instead. Also, its values have been renamed
-   * (CELL_PERSIST -> cell_will_persist,
-   * CELL_REFINE -> cell_will_be_refined,
-   * CELL_COARSEN -> children_will_be_coarsened,
-   * CELL_INVALID -> cell_invalid).
-   */
-  enum CellStatus
-  {
-    CELL_PERSIST DEAL_II_DEPRECATED =
-      static_cast<unsigned int>(::dealii::CellStatus::cell_will_persist),
-    CELL_REFINE DEAL_II_DEPRECATED =
-      static_cast<unsigned int>(::dealii::CellStatus::cell_will_be_refined),
-    CELL_COARSEN DEAL_II_DEPRECATED = static_cast<unsigned int>(
-      ::dealii::CellStatus::children_will_be_coarsened),
-    CELL_INVALID DEAL_II_DEPRECATED =
-      static_cast<unsigned int>(::dealii::CellStatus::cell_invalid)
-  };
+   * The elements of this `enum` are used to inform functions how a
+   * specific cell is going to change. This is used in the course of
+   * transferring data from one mesh to a refined or coarsened version of
+   * the mesh, for example. Note that this may me different than the
+   * refine_flag() and coarsen_flag() set on a cell, for example in
+   * parallel calculations, because of refinement constraints that an
+   * individual machine does not see.
+   *
+   * @deprecated This is an alias for backward compatibility. Use
+   * ::dealii::CellStatus directly.
+   */
+  using CellStatus DEAL_II_DEPRECATED_EARLY = ::dealii::CellStatus;
 
   /**
    * A structure used to accumulate the results of the `weight` signal slot

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.