summaryrefslogtreecommitdiff
path: root/lib/spec64.f90
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2026-10-20 22:35:06 +0100
committerDave Hibberd <hibby@debian.org>2026-10-20 22:35:06 +0100
commit82ebb1ed1af30cee4dfbb1c628431d32885a00e0 (patch)
tree1a1f782d3e576b758be0bc61171574a7cd8f2376 /lib/spec64.f90
parent061658210acb6425517733ea012dda803a7f72a1 (diff)
parent61d684922b0f1c8455cc60eb3d123df058c9e1f5 (diff)
Merge tag 'debian/3.3.0_beta2+dfsg-1' into hibbian/trixie-backports
tagging wsjtx 3.3.0~beta2+dfsg-1
Diffstat (limited to 'lib/spec64.f90')
-rw-r--r--lib/spec64.f906
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/spec64.f90 b/lib/spec64.f90
index 1fd732bb..cedc10fa 100644
--- a/lib/spec64.f90
+++ b/lib/spec64.f90
@@ -1,6 +1,8 @@
-subroutine spec64(c0,cs,npts,nsps,mode_q65,jpk,s3,LL,NN)
+subroutine spec64(c0,cs,npts,nsps,mode_q65,jpk,s3,LL,NN,plan)
use q65_workspace, only: Q65_MAXFFT
+ use iso_c_binding, only: c_int64_t
+ integer(c_int64_t), intent(in) :: plan
complex c0(0:npts-1) !Complex spectrum of dd()
complex cs(0:Q65_MAXFFT-1) !Complex symbol spectrum
@@ -28,7 +30,7 @@ subroutine spec64(c0,cs,npts,nsps,mode_q65,jpk,s3,LL,NN)
cs(0:nz)=c0(ja:jb)
! if(nz.lt.nfft-1) cs(nz+1:)=0.
if(nz.lt.nfft-1 .and. nz.ge.0) cs(nz+1:)=0. !Avoid a potential bounds error with Q65-15 EME
- call four2a(cs,nsps,1,-1,1) !c2c FFT to frequency
+ call sfftw_execute(plan)
do ii=1,LL
i=ii-65+mode_q65 !mode_q65 = 1 2 4 8 16 for Q65 A B C D E
if(i.lt.0) i=i+nsps