summaryrefslogtreecommitdiff
path: root/lib/spec64.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-10-09 14:12:49 +0200
committerChristoph Berg <myon@debian.org>2026-10-09 14:12:49 +0200
commit76956486fa7ef52a51d4e56df1e13a9f19a6c93c (patch)
treefe0c394439fdc167d1970372e8998874090854dd /lib/spec64.f90
parent0685fcada9f95fe90f70b387cd7d757da8209624 (diff)
parentffc62c792c9a5196cb4ce7a353287dfe20db6524 (diff)
Update upstream source from tag 'upstream/3.3.0_beta1+dfsg'
Update to upstream version '3.3.0~beta1+dfsg' with Debian dir 85037bbb9376721108594b59b54ead82ac6924a3
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