MPI-AMRVAC 3.2
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
Loading...
Searching...
No Matches
Functions/Subroutines
mod_fft Module Reference

Self-contained complex FFT utilities based on the mixed-radix Singleton transform historically embedded in mod_pfss. More...

Functions/Subroutines

logical function, public fft_size_supported (n)
 Return whether the legacy mixed-radix workspace can handle a transform.
 
integer function, public fft_next_supported (n)
 
character(len=128) function, public fft_factorization (n)
 Human-readable prime factorization used in unsupported-size diagnostics.
 
subroutine, public fft_1d (data, inverse)
 In-place complex one-dimensional FFT. The inverse is normalized.
 
subroutine, public fft_2d (data, inverse)
 In-place complex two-dimensional FFT. The inverse is normalized.
 
subroutine, public fft_2d_real_imag (ar, ai, inverse)
 In-place two-dimensional FFT on split real/imaginary storage. This avoids allocation and copying in repeated plane transforms.
 
subroutine, public fft_raw (a, b, ntot, n, nspan, isn)
 

Detailed Description

Self-contained complex FFT utilities based on the mixed-radix Singleton transform historically embedded in mod_pfss.

Function/Subroutine Documentation

◆ fft_1d()

subroutine, public mod_fft::fft_1d ( double complex, dimension(:), intent(inout)  data,
logical, intent(in)  inverse 
)

In-place complex one-dimensional FFT. The inverse is normalized.

Definition at line 128 of file mod_fft.t.

Here is the call graph for this function:

◆ fft_2d()

subroutine, public mod_fft::fft_2d ( double complex, dimension(:,:), intent(inout)  data,
logical, intent(in)  inverse 
)

In-place complex two-dimensional FFT. The inverse is normalized.

Definition at line 151 of file mod_fft.t.

Here is the call graph for this function:

◆ fft_2d_real_imag()

subroutine, public mod_fft::fft_2d_real_imag ( double precision, dimension(:,:), intent(inout)  ar,
double precision, dimension(:,:), intent(inout)  ai,
logical, intent(in)  inverse 
)

In-place two-dimensional FFT on split real/imaginary storage. This avoids allocation and copying in repeated plane transforms.

Definition at line 180 of file mod_fft.t.

Here is the call graph for this function:

◆ fft_factorization()

character(len=128) function, public mod_fft::fft_factorization ( integer, intent(in)  n)

Human-readable prime factorization used in unsupported-size diagnostics.

Definition at line 82 of file mod_fft.t.

◆ fft_next_supported()

integer function, public mod_fft::fft_next_supported ( integer, intent(in)  n)

Definition at line 72 of file mod_fft.t.

Here is the call graph for this function:

◆ fft_raw()

subroutine, public mod_fft::fft_raw ( double precision, dimension(*)  a,
double precision, dimension(*)  b,
integer  ntot,
integer  n,
integer  nspan,
integer  isn 
)

Definition at line 205 of file mod_fft.t.

◆ fft_size_supported()

logical function, public mod_fft::fft_size_supported ( integer, intent(in)  n)

Return whether the legacy mixed-radix workspace can handle a transform.

Definition at line 18 of file mod_fft.t.

Here is the call graph for this function: