Skip to main content

HeirarchicalBasis

Evaluate all modal basis (heirarchical polynomial) on Triangle.

Interface

INTERFACE
MODULE PURE FUNCTION HeirarchicalBasis_Triangle(order, pe1, pe2, pe3,&
& xij, refTriangle) RESULT(ans)
INTEGER(I4B), INTENT(IN) :: order
!! order in the cell of triangle, it should be greater than 2
INTEGER(I4B), INTENT(IN) :: pe1
!! order of interpolation on edge e1
INTEGER(I4B), INTENT(IN) :: pe2
!! order of interpolation on edge e2
INTEGER(I4B), INTENT(IN) :: pe3
!! order of interpolation on edge e3
REAL(DFP), INTENT(IN) :: xij(:, :)
!! points of evaluation in xij format
CHARACTER(*), INTENT(IN) :: refTriangle
!! reference triangle
REAL(DFP) :: ans( &
& SIZE(xij, 2), &
& pe1 + pe2 + pe3 + INT((order - 1) * (order - 2) / 2))
!!
END FUNCTION HeirarchicalBasis_Triangle
END INTERFACE