PLaSK library
Loading...
Searching...
No Matches
cfft2i.c
Go to the documentation of this file.
1
/* cfft2i.f -- translated by f2c (version 20100827).
2
You must link the resulting object file with libf2c:
3
on Microsoft Windows system, link with libf2c.lib;
4
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
5
or, if you install libf2c.a in a standard place, with -lf2c -lm
6
-- in that order, at the end of the command line, as in
7
cc *.o -lf2c -lm
8
Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
9
10
http://www.netlib.org/f2c/libf2c.zip
11
*/
12
13
#include "
f2c.h
"
14
15
/* Table of constant values */
16
17
static
integer
c__4 = 4;
18
static
integer
c_n5 = -5;
19
20
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
21
/* * * */
22
/* * copyright (c) 2011 by UCAR * */
23
/* * * */
24
/* * University Corporation for Atmospheric Research * */
25
/* * * */
26
/* * all rights reserved * */
27
/* * * */
28
/* * FFTPACK version 5.1 * */
29
/* * * */
30
/* * A Fortran Package of Fast Fourier * */
31
/* * * */
32
/* * Subroutines and Example Programs * */
33
/* * * */
34
/* * by * */
35
/* * * */
36
/* * Paul Swarztrauber and Dick Valent * */
37
/* * * */
38
/* * of * */
39
/* * * */
40
/* * the National Center for Atmospheric Research * */
41
/* * * */
42
/* * Boulder, Colorado (80307) U.S.A. * */
43
/* * * */
44
/* * which is sponsored by * */
45
/* * * */
46
/* * the National Science Foundation * */
47
/* * * */
48
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
49
50
/* Subroutine */
int
cfft2i_
(
integer
*l,
integer
*m,
doublereal
*wsave,
51
integer
*
lensav
,
integer
*ier)
52
{
53
/* System generated locals */
54
integer
i__1;
55
56
/* Builtin functions */
57
double
log(
doublereal
);
58
59
/* Local variables */
60
integer
ier1;
61
extern
/* Subroutine */
int
cfftmi_
(
integer
*,
doublereal
*,
integer
*,
62
integer
*),
xerfft_
(
char
*,
integer
*,
ftnlen
);
63
64
65
/* Initialize error return */
66
67
/* Parameter adjustments */
68
--wsave;
69
70
/* Function Body */
71
*ier = 0;
72
73
if
(*
lensav
< (*l << 1) + (
integer
) (log((
doublereal
) (*l)) / log(2.)) + (
74
*m << 1) + (
integer
) (log((
doublereal
) (*m)) / log(2.)) + 8) {
75
*ier = 2;
76
xerfft_
(
"CFFT2I"
, &c__4, (
ftnlen
)6);
77
goto
L100;
78
}
79
80
i__1 = (*l << 1) + (
integer
) (log((
doublereal
) (*l)) / log(2.)) + 4;
81
cfftmi_
(l, &wsave[1], &i__1, &ier1);
82
if
(ier1 != 0) {
83
*ier = 20;
84
xerfft_
(
"CFFT2I"
, &c_n5, (
ftnlen
)6);
85
goto
L100;
86
}
87
i__1 = (*m << 1) + (
integer
) (log((
doublereal
) (*m)) / log(2.)) + 4;
88
cfftmi_
(m, &wsave[(*l << 1) + (
integer
) (log((
doublereal
) (*l)) / log(2.))
89
+ 3], &i__1, &ier1);
90
if
(ier1 != 0) {
91
*ier = 20;
92
xerfft_
(
"CFFT2I"
, &c_n5, (
ftnlen
)6);
93
}
94
95
L100:
96
return
0;
97
}
/* cfft2i_ */
98
extlib
fftpacx
cfft2i.c
Generated by
1.9.8