diff options
| author | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
| commit | 992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 (patch) | |
| tree | fbfdfe6bcb0a8a114be2480dac53d88c977e4869 /lib/ps4.f90 | |
| parent | 4320ce238aae1fe87fc9f379cdd816e9317885fa (diff) | |
New upstream version 2.7.0~rc8+repackupstream/2.7.0_rc8+repack
Diffstat (limited to 'lib/ps4.f90')
| -rwxr-xr-x | lib/ps4.f90 | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/lib/ps4.f90 b/lib/ps4.f90 index 7ed1ae72..782ab50d 100755 --- a/lib/ps4.f90 +++ b/lib/ps4.f90 @@ -1,27 +1,27 @@ -subroutine ps4(dat,nfft,s)
-
- parameter (NMAX=2520+2)
- parameter (NHMAX=NMAX/2-1)
- real dat(nfft)
- real dat2(NMAX)
- real s(NHMAX)
- complex c(0:NMAX)
- equivalence(dat2,c)
-
- nh=nfft/2
- do i=1,nh
- dat2(i)=dat(i)/128.0 !### Why 128 ??
- enddo
- do i=nh+1,nfft
- dat2(i)=0.
- enddo
-
- call four2a(c,nfft,1,-1,0)
-
- fac=1.0/nfft
- do i=1,nh
- s(i)=fac*(real(c(i))**2 + aimag(c(i))**2)
- enddo
-
- return
-end subroutine ps4
+subroutine ps4(dat,nfft,s) + + parameter (NMAX=2520+2) + parameter (NHMAX=NMAX/2-1) + real dat(nfft) + real dat2(NMAX) + real s(NHMAX) + complex c(0:NMAX) + equivalence(dat2,c) + + nh=nfft/2 + do i=1,nh + dat2(i)=dat(i)/128.0 !### Why 128 ?? + enddo + do i=nh+1,nfft + dat2(i)=0. + enddo + + call four2a(c,nfft,1,-1,0) + + fac=1.0/nfft + do i=1,nh + s(i)=fac*(real(c(i))**2 + aimag(c(i))**2) + enddo + + return +end subroutine ps4 |
