Skip to content
Snippets Groups Projects
Commit 6c101993 authored by Christian Engwer's avatar Christian Engwer
Browse files

Add geomtrytype None

patch provided by Atgeirr Rasmussen


[[Imported from SVN: r5783]]
parent 378faf0e
Branches
Tags
No related merge requests found
......@@ -27,7 +27,8 @@ namespace Dune {
simplex, //!< Simplicial element in any nonnegative dimension
cube, //!< Cube element in any nonnegative dimension
pyramid, //!< Four sided pyramid in three dimensions
prism //!< Prism element in three dimensions
prism, //!< Prism element in three dimensions
none //!< Generic element in any nonnegative dimension
};
private:
......@@ -88,6 +89,9 @@ namespace Dune {
/** \brief Make a hypercube of given dimension */
void makeCube(unsigned int dim) {basicType_ = cube; dim_ = dim;}
/** \brief Make a singular of given dimension */
void makeNone(unsigned int dim) {basicType_ = none; dim_ = dim;}
/*@}*/
......@@ -123,6 +127,9 @@ namespace Dune {
/** \brief Return true if entity is a cube of any dimension */
bool isCube() const {return basicType_==cube || dim_ < 2;}
/** \brief Return true if entity is a singular of any dimension */
bool isNone() const {return basicType_==none;}
/** \brief Return dimension of the entity */
unsigned int dim() const {return dim_;}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment