Skip to main content

LagrangeInDOF

Returns the total number of degree of freedom for a lagrange polynomial in cell/face of triangle.

The dof are strictly inside the triangle.

The total number of DOF inside the triangle is given by:

12(n1)(n2)\frac{1}{2}(n-1)(n-2)

Interface

INTERFACE
MODULE PURE FUNCTION LagrangeInDOF_Triangle(order) RESULT(ans)
INTEGER(I4B), INTENT(IN) :: order
INTEGER(I4B) :: ans
END FUNCTION LagrangeInDOF_Triangle
END INTERFACE