ply_scalProdLeg Function

public pure function ply_scalProdLeg(ansFunc) result(scalProd)

Function to calculate the L2 scalar product of a Legendre polynomial with itself on the reference element [-1,+1].

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: ansFunc

The Legendre polynomial to calculate the scalar product for. The first Legendre polynomial has index 1.

Return Value real(kind=rk)

The scalar product on the refenece element [-1,+1].