From e3aa240dd0196c43cf7e9e7d72b61f5a9837b756 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Thu, 29 Feb 2024 22:17:47 -0500 Subject: [PATCH] fix bug in plan_r2r! for num_threads != nothing --- src/fft.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fft.jl b/src/fft.jl index 4831a18..d58b121 100644 --- a/src/fft.jl +++ b/src/fft.jl @@ -987,7 +987,7 @@ function plan_r2r!(X::StridedArray{T,N}, kinds, region; num_threads::Union{Nothing, Integer} = nothing) where {T<:fftwNumber,N} if num_threads !== nothing plan = set_num_threads(num_threads) do - plan_r2r(X, kinds, region; flags = flags, timelimit = timelimit) + plan_r2r!(X, kinds, region; flags = flags, timelimit = timelimit) end return plan end