cheb_n2dmat Subroutine

public subroutine cheb_n2dmat(n, dm1, dm2)

Calculates the nodal second derivative matrix for CGL/CG/CGR nodes.

References

  1. "Spectral differencing with a twist", Richard Baltensperger and Manfred R. Trummer, SIAM J. Sci. Comput., Vol. 24, No. 5, pp. 1465–1487, 2003.

  2. Costa, B. and Don, W. S. (2000), 'On the computation of high order pseudospectral derivatives', Applied Numerical Mathematics, 33, 151-159.

  3. Maleki, M., Hashim, I., and Abbasbandy, S. (2012), 'Analysis of IVPs and BVPs on semi-infinite domains via collocation methods', Journal of Applied Mathematics, doi:10.1155/2012/696574.

Arguments

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

Degree of the polynomial

real(kind=rp), intent(in), dimension(:,:) :: dm1

(n+1,n+1). Nodal first derivative matrix

real(kind=rp), intent(out), dimension(:,:) :: dm2

(n+1,n+1). Nodal second derivative matrix