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.6 KB
|
Line | |
---|
1 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
2 | ! |
---|
3 | ! FFTPACK 5.0 |
---|
4 | ! |
---|
5 | ! Authors: Paul N. Swarztrauber and Richard A. Valent |
---|
6 | ! |
---|
7 | ! $Id: cosqmi.f,v 1.2 2004/06/15 21:14:57 rodney Exp $ |
---|
8 | ! |
---|
9 | !CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC |
---|
10 | |
---|
11 | SUBROUTINE COSQMI (N, WSAVE, LENSAV, IER) |
---|
12 | INTEGER N, LENSAV, IER |
---|
13 | REAL WSAVE(LENSAV) |
---|
14 | ! |
---|
15 | IER = 0 |
---|
16 | ! |
---|
17 | IF (LENSAV .LT. 2*N + INT(LOG(REAL(N))) +4) THEN |
---|
18 | IER = 2 |
---|
19 | CALL XERFFT ('COSQMI', 3) |
---|
20 | GO TO 300 |
---|
21 | ENDIF |
---|
22 | ! |
---|
23 | PIH = 2.*ATAN(1.) |
---|
24 | DT = PIH/FLOAT(N) |
---|
25 | FK = 0. |
---|
26 | DO 101 K=1,N |
---|
27 | FK = FK+1. |
---|
28 | WSAVE(K) = COS(FK*DT) |
---|
29 | 101 END DO |
---|
30 | LNSV = N + INT(LOG(REAL(N))) +4 |
---|
31 | CALL RFFTMI (N, WSAVE(N+1), LNSV, IER1) |
---|
32 | IF (IER1 .NE. 0) THEN |
---|
33 | IER = 20 |
---|
34 | CALL XERFFT ('COSQMI',-5) |
---|
35 | ENDIF |
---|
36 | 300 CONTINUE |
---|
37 | RETURN |
---|
38 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.