diff --git a/FunctionSpace/FunctionSpace.h b/FunctionSpace/FunctionSpace.h index 76cba19839739302d6323a3256790ec9bea2165a..8ee705f4b119e8e96dc55da6787c33d08efbe684 100644 --- a/FunctionSpace/FunctionSpace.h +++ b/FunctionSpace/FunctionSpace.h @@ -67,6 +67,7 @@ class FunctionSpace{ const GroupOfElement& getSupport(void) const; unsigned int getType(void) const; + unsigned int getOrder(void) const; unsigned int getNFunctionPerVertex(const MElement& element) const; unsigned int getNFunctionPerEdge(const MElement& element) const; @@ -138,6 +139,11 @@ class FunctionSpace{ @see Basis::getType() ** + @fn FunctionSpace::getOrder + @return Return the @em order + of this FunctionSpace + ** + @fn FunctionSpace::getNFunctionPerVertex @param element A MElement of the support @return Returns the number of @em Vertex Based @@ -218,6 +224,10 @@ inline unsigned int FunctionSpace::getType(void) const{ return type; } +inline unsigned int FunctionSpace::getOrder(void) const{ + return (unsigned int)(basis->getOrder()); +} + inline unsigned int FunctionSpace::getNFunctionPerVertex(const MElement& element) const{ return fPerVertex; }