37 USE iso_c_binding,
ONLY: c_double,&
40#include "../base/base_uses.f90"
48 CHARACTER(len=*),
PARAMETER,
PRIVATE :: moduleN =
'wignernj_interface'
61 FUNCTION gaunt_c(tl1, tm1, tl2, tm2, tl3, tm3)
BIND(C, name="gaunt")
62 IMPORT :: c_double, c_int
63 INTEGER(KIND=C_INT),
VALUE :: tl1, tm1, tl2, tm2, tl3, tm3
64 REAL(KIND=c_double) :: gaunt_c
77 FUNCTION gaunt_real_c(tl1, tm1, tl2, tm2, tl3, tm3)
BIND(C, name="gaunt_real")
78 IMPORT :: c_double, c_int
79 INTEGER(KIND=C_INT),
VALUE :: tl1, tm1, tl2, tm2, tl3, tm3
80 REAL(KIND=c_double) :: gaunt_real_c
81 END FUNCTION gaunt_real_c
98 INTEGER,
INTENT(IN) :: l1, m1, l2, m2, l3, m3
101 g = real(gaunt_real_c(2*l1, 2*m1, 2*l2, 2*m2, 2*l3, 2*m3), kind=
dp)
117 INTEGER,
INTENT(IN) :: l1, m1, l2, m2, l3, m3
120 g = real(gaunt_c(2*l1, 2*m1, 2*l2, 2*m2, 2*l3, 2*m3), kind=
dp)
Defines the basic variable types.
integer, parameter, public dp
Interface to libwignernj for the angular momentum algebra.
real(kind=dp) function, public real_gaunt(l1, m1, l2, m2, l3, m3)
Gaunt coefficient of three real spherical harmonics, int S(l1,m1) S(l2,m2) S(l3,m3) dOmega.
real(kind=dp) function, public complex_gaunt(l1, m1, l2, m2, l3, m3)
Gaunt coefficient of three complex spherical harmonics, int Y(l1,m1) Y(l2,m2) Y(l3,...