zwgljd
C ZWGLJD SOURCE CHAT 05/01/13 04:25:30 5004 C-------------------------------------------------------------------- C C Generate NP GAUSS LOBATTO JACOBI points (Z) and weights (W) C associated with Jacobi polynomial P(N)(alpha>-1,beta>-1). C The polynomial degree N=NP-1. C Double precision version. C C-------------------------------------------------------------------- IMPLICIT INTEGER(I-N) IMPLICIT REAL*8 (A-H,O-Z) N = NP-1 NM1 = N-1 ONE = 1.D0 TWO = 2.D0 C IF (NP.LE.1) THEN WRITE (6,*) 'Minimum number of Gauss-Lobatto points is 2' STOP ENDIF WRITE (6,*) 'Alpha and Beta must be greater than -1' STOP ENDIF C IF (NM1.GT.0) THEN BETG = BETA+ONE ENDIF Z(1) = -ONE Z(NP) = ONE DO 100 I=2,NP-1 W(I) = W(I)/(ONE-Z(I)**2) 100 CONTINUE RETURN END
© Cast3M 2003 - Tous droits réservés.
Mentions légales