Note
Creates forward and backward plans. 1 FFT distributed on several threads
Until no more transformation is needed, the plans remain as they are.
Warning
In C, the order line/column is reversed, so the 2nd dimension larg
of the array
is first provided in fftw_plan_dft_2d
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 make_plan_fftw3_real(long, larg, plan_flag) 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* ! forward plan_f = fftw_plan_dft_r2c_2d(n0 = larg, n1 = long, in = rea_f_i, out = cmp_f_o, flags = plan_flag) ! backward plan_b = fftw_plan_dft_c2r_2d(n0 = larg, n1 = long, in = cmp_b_i, out = rea_b_o, flags = plan_flag) return endsubroutine make_plan_fftw3_real