26 REAL ENN1((M+1)*((I+1)*M+2)/2)
27 REAL Q((M+1)*((I+1)*M+2))
28 REAL QD2((M+1)*((I+1)*M+2))
35 DO k=2,(m+1)*((i+1)*m+2)/2
36 qd2(2*k-1)=q(2*k-1)*(-enn1(k))
37 qd2(2*k)=q(2*k)*(-enn1(k))
42 DO k=2,(m+1)*((i+1)*m+2)/2
43 q(2*k-1)=qd2(2*k-1)/(-enn1(k))
44 q(2*k)=qd2(2*k)/(-enn1(k))
subroutine splaplac(I, M, ENN1, Q, QD2, IDIR)
Computes the laplacian or the inverse laplacian of a scalar field in spectral space.