Note
When no more transformation is needed, the memory is released. several FFT on single thread each
subroutine tab_desalloc_fftw3() implicit none integer(kind=I4) :: ithread do ithread = 0, NB_THREADS_FFT -1 ! forward call fftw_free(tab_p_f_i(ithread)) ; tab_p_f_i(ithread) = C_NULL_PTR call fftw_free(tab_p_f_o(ithread)) ; tab_p_f_o(ithread) = C_NULL_PTR ! backward call fftw_free(tab_p_b_i(ithread)) ; tab_p_b_i(ithread) = C_NULL_PTR call fftw_free(tab_p_b_o(ithread)) ; tab_p_b_o(ithread) = C_NULL_PTR enddo return endsubroutine tab_desalloc_fftw3