diff options
| author | Christoph Berg <myon@debian.org> | 2026-04-07 19:02:45 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-04-07 19:02:45 +0200 |
| commit | f647d78463c1250ce9c99af664615fafccf5e959 (patch) | |
| tree | 5b00428cef68aef1c9d407e2d4535687422419b6 /lib/superfox/twkfreq2.f90 | |
| parent | 0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff) | |
New upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'lib/superfox/twkfreq2.f90')
| -rw-r--r--[-rwxr-xr-x] | lib/superfox/twkfreq2.f90 | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/lib/superfox/twkfreq2.f90 b/lib/superfox/twkfreq2.f90 index 443088c6..3cb26f93 100755..100644 --- a/lib/superfox/twkfreq2.f90 +++ b/lib/superfox/twkfreq2.f90 @@ -1,19 +1,19 @@ -subroutine twkfreq2(c3,c4,npts,fsample,fshift)
-
-! Adjust frequency of complex waveform
-
- complex c3(npts)
- complex c4(npts)
- complex w,wstep
- data twopi/6.283185307/
-
- w=1.0
- dphi=fshift*twopi/fsample
- wstep=cmplx(cos(dphi),sin(dphi))
- do i=1,npts
- w=w*wstep
- c4(i)=w*c3(i)
- enddo
-
- return
-end subroutine twkfreq2
+subroutine twkfreq2(c3,c4,npts,fsample,fshift) + +! Adjust frequency of complex waveform + + complex c3(npts) + complex c4(npts) + complex w,wstep + data twopi/6.283185307/ + + w=1.0 + dphi=fshift*twopi/fsample + wstep=cmplx(cos(dphi),sin(dphi)) + do i=1,npts + w=w*wstep + c4(i)=w*c3(i) + enddo + + return +end subroutine twkfreq2 |
