From: Wolfgang Bangerth Date: Thu, 21 Jan 2021 22:59:19 +0000 (-0700) Subject: Merge pull request #11598 from tjhei/cell_type_hyper_cube X-Git-Tag: v9.3.0-rc1~584 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b341ae816f5825e58126305a771cf5ad3b6fef4;p=dealii.git Merge pull request #11598 from tjhei/cell_type_hyper_cube add ReferenceCell::Type::is_hyper_cube --- 9b341ae816f5825e58126305a771cf5ad3b6fef4 diff --cc include/deal.II/grid/reference_cell.h index 79b614d8f0,858e359788..12a6b8cd40 --- a/include/deal.II/grid/reference_cell.h +++ b/include/deal.II/grid/reference_cell.h @@@ -69,8 -69,21 +69,21 @@@ namespace ReferenceCel /** * Constructor. */ - Type(const std::uint8_t kind); + constexpr Type(const std::uint8_t kind); + + /** + * Return true if the object is a Vertex, Line, Quad, or Hex. + */ + bool + is_hyper_cube() const; + + /** + * Return true if the object is a Vertex, Line, Tri, or Tet. + */ + bool + is_simplex() const; + /** * Return the dimension of the reference cell represented by the current * object.