NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
w3fa11.f
Go to the documentation of this file.
1C> @file
2C> @brief Computes coefficients for use in w3fa12.
3C> @author Joe Sela @date 1980-10-28
4
5C> Subroutine computes double precision coefficients
6C> used in generating legendre polynomials in subr. w3fa12.
7C> on a cray double precision is changed to real, dsqrt to sqrt.
8C>
9C> Program history log:
10C> - Joe Sela 1980-10-28
11C> - Ralph Jones 1984-06-01 0change to ibm vs fortran.
12C> - Ralph Jones 1993-04-12 0changes for cray, double precision to real.
13C>
14C> @param[out] EPS Real coefficients used in computing legendre polynomials.
15C> dimension of eps is (jcap+2)*(jcap+1)
16C> @param[in] JCAP Zonal wave number thirty, etc.
17C>
18C> @author Joe Sela @date 1980-10-28
19
20 SUBROUTINE w3fa11 (EPS,JCAP)
21C
22 REAL EPS(*)
23 REAL A
24C
25 SAVE
26C
27 jcap1 = jcap + 1
28 jcap2 = jcap + 2
29C
30 DO 100 ll = 1,jcap1
31 l = ll - 1
32 jle = (ll-1) * jcap2
33C
34 DO 100 inde = 2,jcap2
35 n = l + inde - 1
36 a=(n*n-l*l)/(4.0*n*n-1.0)
37 eps(jle+inde) = sqrt(a)
38 100 CONTINUE
39C
40 DO 200 ll = 1,jcap1
41 jle = (ll-1) * jcap2
42 eps(jle+1) = 0.0
43 200 CONTINUE
44C
45 RETURN
46 END
subroutine w3fa11(eps, jcap)
Subroutine computes double precision coefficients used in generating legendre polynomials in subr.
Definition w3fa11.f:21