diff options
Diffstat (limited to 'map65/libm65/fftw3_f77_interfaces.f90')
| -rw-r--r-- | map65/libm65/fftw3_f77_interfaces.f90 | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/map65/libm65/fftw3_f77_interfaces.f90 b/map65/libm65/fftw3_f77_interfaces.f90 new file mode 100644 index 00000000..1b5af220 --- /dev/null +++ b/map65/libm65/fftw3_f77_interfaces.f90 @@ -0,0 +1,44 @@ +module fftw3_f77_interfaces + use iso_c_binding, only: c_int, c_intptr_t, c_float_complex, c_float + implicit none + + interface + subroutine sfftw_destroy_plan(plan) + import :: c_intptr_t + implicit none + integer(c_intptr_t) :: plan + end subroutine sfftw_destroy_plan + + subroutine sfftw_plan_dft_1d(plan, n, in, out, sign, flags) + import :: c_int, c_intptr_t, c_float_complex + implicit none + integer(c_intptr_t) :: plan + integer(c_int) :: n, sign, flags + complex(c_float_complex) :: in(*), out(*) + end subroutine sfftw_plan_dft_1d + + subroutine sfftw_plan_dft_r2c_1d(plan, n, in, out, flags) + import :: c_int, c_intptr_t, c_float_complex + implicit none + integer(c_intptr_t) :: plan + integer(c_int) :: n, flags + complex(c_float_complex) :: in(*), out(*) + end subroutine sfftw_plan_dft_r2c_1d + + subroutine sfftw_plan_dft_c2r_1d(plan, n, in, out, flags) + import :: c_int, c_intptr_t, c_float_complex + implicit none + integer(c_intptr_t) :: plan + integer(c_int) :: n, flags + complex(c_float_complex) :: in(*), out(*) + end subroutine sfftw_plan_dft_c2r_1d + + subroutine sfftw_execute(plan) + import :: c_intptr_t + implicit none + integer(c_intptr_t) :: plan + end subroutine sfftw_execute + end interface + +end module fftw3_f77_interfaces + |
