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:
Interface
- ܀ Interface
- ️܀ See example
- ↢
INTERFACE
MODULE PURE FUNCTION LagrangeInDOF_Triangle(order) RESULT(ans)
INTEGER(I4B), INTENT(IN) :: order
INTEGER(I4B) :: ans
END FUNCTION LagrangeInDOF_Triangle
END INTERFACE
program main
use easifembase
implicit none
integer( i4b ) :: i1, i2
i1 = LagrangeInDOF_Triangle(order=1)
i2 = 0
call IS( i1, i2 )
i1 = LagrangeInDOF_Triangle(order=2)
i2 = 0
call IS( i1, i2 )
i1 = LagrangeInDOF_Triangle(order=3)
i2 = 1
call IS( i1, i2 )
i1 = LagrangeInDOF_Triangle(order=4)
i2 = 3
call IS( i1, i2 )
end program main