Skip to content

Commit 3a52e78

Browse files
committed
fix
1 parent 49d79bb commit 3a52e78

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/periodograms.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ function fft2pow2radial!(out::Array{T}, s_fft::Matrix{Complex{T}}, n1::Int, n2::
190190
kmax = length(out) # the highest wavenumber
191191
wc = zeros(Int, kmax) # wave count for radial average
192192
if n1 == nmin # scale the wavevector for non-square s_fft
193-
c2 = div(n1, n2)
193+
c2 = n1/n2
194194
c1 = one(c2)
195195
else
196-
c1 = div(n2, n1)
196+
c1 = n2/n1
197197
c2 = one(c1)
198198
end
199199

0 commit comments

Comments
 (0)