summaryrefslogtreecommitdiff
path: root/lib/fqso_first.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2025-09-15 23:04:23 +0200
committerChristoph Berg <myon@debian.org>2025-09-15 23:04:23 +0200
commit0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (patch)
treed702795f99ac38e0cc17e25f0f7e50fa3e05baf9 /lib/fqso_first.f90
parent310d05acf2c9233f7e336ae7dd9ffb7b54ca4e62 (diff)
New upstream version 3.0.0~rc1+repackupstream/3.0.0_rc1+repack
Diffstat (limited to 'lib/fqso_first.f90')
-rwxr-xr-xlib/fqso_first.f9064
1 files changed, 32 insertions, 32 deletions
diff --git a/lib/fqso_first.f90 b/lib/fqso_first.f90
index e553e3e4..779bfe95 100755
--- a/lib/fqso_first.f90
+++ b/lib/fqso_first.f90
@@ -1,32 +1,32 @@
-subroutine fqso_first(nfqso,ntol,ca,ncand)
-
-! If a candidate was found within +/- ntol of nfqso, move it into ca(1).
-
- type candidate
- real freq
- real dt
- real sync
- real flip
- end type candidate
- type(candidate) ca(300),cb
-
- dmin=1.e30
- i0=0
- do i=1,ncand
- d=abs(ca(i)%freq-nfqso)
- if(d.lt.dmin) then
- i0=i
- dmin=d
- endif
- enddo
-
- if(dmin.lt.float(ntol)) then
- cb=ca(i0)
- do i=i0,2,-1
- ca(i)=ca(i-1)
- enddo
- ca(1)=cb
- endif
-
- return
-end subroutine fqso_first
+subroutine fqso_first(nfqso,ntol,ca,ncand)
+
+! If a candidate was found within +/- ntol of nfqso, move it into ca(1).
+
+ type candidate
+ real freq
+ real dt
+ real sync
+ real flip
+ end type candidate
+ type(candidate) ca(300),cb
+
+ dmin=1.e30
+ i0=0
+ do i=1,ncand
+ d=abs(ca(i)%freq-nfqso)
+ if(d.lt.dmin) then
+ i0=i
+ dmin=d
+ endif
+ enddo
+
+ if(dmin.lt.float(ntol)) then
+ cb=ca(i0)
+ do i=i0,2,-1
+ ca(i)=ca(i-1)
+ enddo
+ ca(1)=cb
+ endif
+
+ return
+end subroutine fqso_first