@@ -18,7 +18,7 @@ module fftpack
18
18
19
19
public :: dcosti, dcost
20
20
public :: dct, idct
21
-
21
+
22
22
public :: rk
23
23
24
24
interface
@@ -276,11 +276,11 @@ end function dct_rk
276
276
interface fftshift
277
277
pure module function fftshift_crk(x) result(result)
278
278
complex (kind= rk), intent (in ) :: x(:)
279
- complex (kind= rk), allocatable :: result(:)
279
+ complex (kind= rk), dimension ( size (x)) :: result
280
280
end function fftshift_crk
281
281
pure module function fftshift_rrk(x) result(result)
282
282
real (kind= rk), intent (in ) :: x(:)
283
- real (kind= rk), allocatable :: result(:)
283
+ real (kind= rk), dimension ( size (x)) :: result
284
284
end function fftshift_rrk
285
285
end interface fftshift
286
286
@@ -291,11 +291,11 @@ end function fftshift_rrk
291
291
interface ifftshift
292
292
pure module function ifftshift_crk(x) result(result)
293
293
complex (kind= rk), intent (in ) :: x(:)
294
- complex (kind= rk), allocatable :: result(:)
294
+ complex (kind= rk), dimension ( size (x)) :: result
295
295
end function ifftshift_crk
296
296
pure module function ifftshift_rrk(x) result(result)
297
297
real (kind= rk), intent (in ) :: x(:)
298
- real (kind= rk), allocatable :: result(:)
298
+ real (kind= rk), dimension ( size (x)) :: result
299
299
end function ifftshift_rrk
300
300
end interface ifftshift
301
301
0 commit comments