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