Subroutine to initialize the FFTW3 process 1 FFT distributed on several threads Real case.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=I4), | intent(in) | :: | long |
first 2D array dimension |
||
integer(kind=I4), | intent(in) | :: | larg |
second 2D array dimension |
||
integer(kind=I4), | intent(in) | :: | plan_flag |
planning option, FFTW_ESTIMATE for example |
subroutine init_fftw3_real(long, larg, plan_flag) !! Subroutine to initialize the FFTW3 process *1 FFT distributed on several threads* !! Real case. implicit none integer(kind=I4), intent(in) :: long !! *first 2D array dimension* integer(kind=I4), intent(in) :: larg !! *second 2D array dimension* integer(kind=I4), intent(in) :: plan_flag !! *planning option, [[fftw3(module):FFTW_ESTIMATE]] for example* call alloc_fftw3_real(long, larg) call make_plan_fftw3_real(long, larg, plan_flag) SINGL_FFTW_ALLOCATED = .true. FFT_DIM(1:2) = [long, larg] return endsubroutine init_fftw3_real