30 real*8 function phi(ng,csii, csij)
32 implicit real*8(a-h,o-z)
38 if(abs(csii - csij).le. 1.e-8)
then
41 phi = (1.d0-csij**2.d0)*q2der /(ng*(ng+1.d0)*p2*(csii-csij))
42 if(abs(
phi) .lt. 1.e-10)
then
subroutine get_legendre_value_2der(p2der2, p2, p2der, p1, p1der, n, x)
Computes Legendre polynomial and its first and second derivative on a given point x.
real *8 function phi(ng, csii, csij)
Evaluates Lengendre basis function on a specific point.