PLaSK library
Loading...
Searching...
No Matches
sint1b.c
Go to the documentation of this file.
1
/* sint1b.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__6 = 6;
18
static
integer
c__8 = 8;
19
static
integer
c__10 = 10;
20
static
integer
c_n5 = -5;
21
22
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
23
/* * * */
24
/* * copyright (c) 2011 by UCAR * */
25
/* * * */
26
/* * University Corporation for Atmospheric Research * */
27
/* * * */
28
/* * all rights reserved * */
29
/* * * */
30
/* * FFTPACK version 5.1 * */
31
/* * * */
32
/* * A Fortran Package of Fast Fourier * */
33
/* * * */
34
/* * Subroutines and Example Programs * */
35
/* * * */
36
/* * by * */
37
/* * * */
38
/* * Paul Swarztrauber and Dick Valent * */
39
/* * * */
40
/* * of * */
41
/* * * */
42
/* * the National Center for Atmospheric Research * */
43
/* * * */
44
/* * Boulder, Colorado (80307) U.S.A. * */
45
/* * * */
46
/* * which is sponsored by * */
47
/* * * */
48
/* * the National Science Foundation * */
49
/* * * */
50
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
51
52
/* Subroutine */
int
sint1b_
(
integer
*
n
,
integer
*inc,
doublereal
*x,
integer
53
*lenx,
doublereal
*wsave,
integer
*
lensav
,
doublereal
*work,
integer
*
54
lenwrk,
integer
*ier)
55
{
56
/* System generated locals */
57
integer
x_dim1, x_offset;
58
59
/* Builtin functions */
60
double
log(
doublereal
);
61
62
/* Local variables */
63
integer
ier1;
64
extern
/* Subroutine */
int
sintb1_
(
integer
*,
integer
*,
doublereal
*,
65
doublereal
*,
doublereal
*,
doublereal
*,
integer
*),
xerfft_
(
66
char
*,
integer
*,
ftnlen
);
67
68
69
/* Parameter adjustments */
70
x_dim1 = *inc;
71
x_offset = 1 + x_dim1;
72
x -= x_offset;
73
--wsave;
74
--work;
75
76
/* Function Body */
77
*ier = 0;
78
79
if
(*lenx < *inc * (*
n
- 1) + 1) {
80
*ier = 1;
81
xerfft_
(
"SINT1B"
, &c__6, (
ftnlen
)6);
82
goto
L100;
83
}
else
if
(*
lensav
< *
n
/ 2 + *
n
+ (
integer
) (log((
doublereal
) (*
n
)) /
84
log(2.)) + 4) {
85
*ier = 2;
86
xerfft_
(
"SINT1B"
, &c__8, (
ftnlen
)6);
87
goto
L100;
88
}
else
if
(*lenwrk < (*
n
<< 1) + 2) {
89
*ier = 3;
90
xerfft_
(
"SINT1B"
, &c__10, (
ftnlen
)6);
91
goto
L100;
92
}
93
94
sintb1_
(
n
, inc, &x[x_offset], &wsave[1], &work[1], &work[*
n
+ 2], &ier1);
95
if
(ier1 != 0) {
96
*ier = 20;
97
xerfft_
(
"SINT1B"
, &c_n5, (
ftnlen
)6);
98
}
99
100
L100:
101
return
0;
102
}
/* sint1b_ */
103
extlib
fftpacx
sint1b.c
Generated by
1.9.8