We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f1f4e4 commit 67ffe56Copy full SHA for 67ffe56
src/fftpack_fftshift.f90
@@ -5,7 +5,7 @@
5
!> Shifts zero-frequency component to center of spectrum for `complex` type.
6
pure module function fftshift_crk(x) result(result)
7
complex(kind=rk), intent(in) :: x(:)
8
- complex(kind=rk), allocatable :: result(:)
+ complex(kind=rk), dimension(size(x)) :: result
9
10
result = cshift(x, shift=-floor(0.5_rk*size(x)))
11
@@ -14,7 +14,7 @@ end function fftshift_crk
14
!> Shifts zero-frequency component to center of spectrum for `real` type.
15
pure module function fftshift_rrk(x) result(result)
16
real(kind=rk), intent(in) :: x(:)
17
- real(kind=rk), allocatable :: result(:)
+ real(kind=rk), dimension(size(x)) :: result
18
19
20
0 commit comments