Skip to content

Commit

Permalink
fix bug in plan_r2r! for num_threads != nothing (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj authored Jun 28, 2024
1 parent b0f8c78 commit f888022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fft.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f888022

Please sign in to comment.