Skip to main content

LagrangeDOF

Returns the total number of degree of freedom for a lagrange polynomial.

The total DOF is given by:

(p+1)(q+1)(p+1)(q+1)

Calling example:

ans = LagrangeDOF_Quadrangle(order)
ans = LagrangeDOF_Quadrangle(p, q, r)

Interface 1

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

order denotes the order of quadrangle element.

Interface 2

INTERFACE
MODULE PURE FUNCTION LagrangeDOF_Quadrangle(p,q) RESULT(ans)
INTEGER(I4B), INTENT(IN) :: p, q
INTEGER(I4B) :: ans
END FUNCTION LagrangeDOF_Quadrangle
END INTERFACE
p, q

p and q denote the order of quadrangle element in x and y direction, respectively.