Skip to main content

HeirarchicalBasis

Evaluate all modal basis (heirarchical polynomial) on Quadrangle.

Interface

INTERFACE
MODULE PURE FUNCTION HeirarchicalBasis_Quadrangle(order, pe1, pe2, pe3,&
& xij, refQuadrangle) 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) :: refQuadrangle
!! reference triangle
REAL(DFP) :: ans( &
& SIZE(xij, 2), &
& pe1 + pe2 + pe3 + INT((order - 1) * (order - 2) / 2))
!!
END FUNCTION HeirarchicalBasis_Quadrangle
END INTERFACE

Interface 2

INTERFACE HeirarchicalBasis_Quadrangle
MODULE PURE FUNCTION HeirarchicalBasis_Quadrangle2(p, q, xij) RESULT(ans)
INTEGER(I4B), INTENT(IN) :: p
!! order of interpolation inside the quadrangle in x1 direction
INTEGER(I4B), INTENT(IN) :: q
!! order of interpolation inside the quadrangle in x2 direction
REAL(DFP), INTENT(IN) :: xij(:, :)
!! points of evaluation in xij format
REAL(DFP) :: ans(SIZE(xij, 2), (p + 1) * (q + 1))
!!
END FUNCTION HeirarchicalBasis_Quadrangle2
END INTERFACE HeirarchicalBasis_Quadrangle