V3FIT
Main Page
Related Pages
Modules
Modules List
Module Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions/Subroutines
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
y
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Data Types List
Data Types List
Data Types
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
~
Functions/Subroutines
a
b
c
d
e
f
g
i
l
m
n
p
r
s
t
u
v
x
y
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Files
File List
File Members
All
b
c
g
i
l
m
n
p
t
v
w
Functions/Subroutines
b
c
g
i
m
p
t
v
w
Variables
Enumerations
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Macros
Pages
LIBSTELL
Sources
FFTpack
cftrig.f90
1
SUBROUTINE
cftrig_g (n, trigs)
2
USE
stel_kinds
3
IMPLICIT NONE
4
!-----------------------------------------------
5
! D u m m y A r g u m e n t s
6
!-----------------------------------------------
7
INTEGER
n
8
REAL
(rprec),
DIMENSION(*)
:: trigs
9
#if
!defined(CRAY) || defined(LONESTAR) || defined(MCURIE)
10
!-----------------------------------------------
11
! L o c a l P a r a m e t e r s
12
!-----------------------------------------------
13
REAL
(rprec),
PARAMETER
:: one = 1, two = 2, p5 = .5_dp
14
!-----------------------------------------------
15
! L o c a l V a r i a b l e s
16
!-----------------------------------------------
17
INTEGER
:: l, i
18
REAL
(rprec) :: pi, del, angle
19
!-----------------------------------------------
20
pi = two*asin(one)
21
del = (pi + pi)/n
22
l = n + n
23
DO
10 i=1,l,2
24
angle=(p5*del)*(i-1)
25
trigs(i)=cos(angle)
26
trigs(i+1)=sin(angle)
27
10
CONTINUE
28
#else
29
CALL
cftrig (n, trigs)
30
#endif
31
END SUBROUTINE
cftrig_g
Generated on Thu Mar 5 2020 15:49:23 for V3FIT by
1.8.17