Last change
on this file since 1 was
1,
checked in by lfita, 10 years ago
|
- -- --- Opening of the WRF+LMDZ coupling repository --- -- -
WRF: version v3.3
LMDZ: version v1818
More details in:
|
File size:
1.7 KB
|
Line | |
---|
1 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
2 | ! |
---|
3 | ! FFTPACK 5.0 |
---|
4 | ! |
---|
5 | ! Authors: Paul N. Swarztrauber and Richard A. Valent |
---|
6 | ! |
---|
7 | ! $Id: sint1i.f,v 1.2 2004/06/15 21:29:20 rodney Exp $ |
---|
8 | ! |
---|
9 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
10 | |
---|
11 | SUBROUTINE SINT1I (N, WSAVE, LENSAV, IER) |
---|
12 | INTEGER N, LENSAV, IER |
---|
13 | REAL WSAVE(LENSAV) |
---|
14 | ! |
---|
15 | IER = 0 |
---|
16 | ! |
---|
17 | IF (LENSAV .LT. N/2 + N + INT(LOG(REAL(N))) +4) THEN |
---|
18 | IER = 2 |
---|
19 | CALL XERFFT ('SINT1I', 3) |
---|
20 | GO TO 300 |
---|
21 | ENDIF |
---|
22 | ! |
---|
23 | PI = 4.*ATAN(1.) |
---|
24 | IF (N .LE. 1) RETURN |
---|
25 | NS2 = N/2 |
---|
26 | NP1 = N+1 |
---|
27 | DT = PI/FLOAT(NP1) |
---|
28 | DO 101 K=1,NS2 |
---|
29 | WSAVE(K) = 2.*SIN(K*DT) |
---|
30 | 101 END DO |
---|
31 | LNSV = NP1 + INT(LOG(REAL(NP1))) +4 |
---|
32 | CALL RFFT1I (NP1, WSAVE(NS2+1), LNSV, IER1) |
---|
33 | IF (IER1 .NE. 0) THEN |
---|
34 | IER = 20 |
---|
35 | CALL XERFFT ('SINT1I',-5) |
---|
36 | ENDIF |
---|
37 | ! |
---|
38 | 300 CONTINUE |
---|
39 | RETURN |
---|
40 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.