Skip to content

Commit

Permalink
Triangulation: include compatibility CellStatus via using instead of …
Browse files Browse the repository at this point in the history
…defining a new enum
  • Loading branch information
tamiko committed Jul 10, 2023
1 parent 5f46e8c commit 51f01ec
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions include/deal.II/grid/tria.h
Original file line number Diff line number Diff line change
Expand Up @@ -2226,26 +2226,12 @@ class Triangulation : public Subscriptor
/** @} */

/**
* Alias for backward compatibility.
* @copydoc ::dealii::CellStatus
*
* @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).
* @deprecated This is an alias for backward compatibility. Use
* ::dealii::CellStatus directly.
*/
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)
};
using CellStatus DEAL_II_DEPRECATED_EARLY = ::dealii::CellStatus;

/**
* A structure used to accumulate the results of the `weight` signal slot
Expand Down

0 comments on commit 51f01ec

Please sign in to comment.