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/baddata.f90 | |
| parent | 0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff) | |
New upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'lib/baddata.f90')
| -rw-r--r--[-rwxr-xr-x] | lib/baddata.f90 | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/lib/baddata.f90 b/lib/baddata.f90 index 378de8d6..7353ff79 100755..100644 --- a/lib/baddata.f90 +++ b/lib/baddata.f90 @@ -1,29 +1,29 @@ -logical function baddata(id2,nz)
-
- integer*2 id2(nz)
-
- nadd=1200
- j=0
- smin=1.e30
- smax=-smin
- iz=49*12000/nadd
- do i=1,iz
- sq=0.
- do n=1,nadd
- j=j+1
- x=id2(j)
- sq=sq + x*x
- enddo
- rms=sqrt(sq/nadd)
- if(i.gt.6) then
- smin=min(smin,rms)
- smax=max(smax,rms)
- endif
- enddo
-
- sratio=smax/(smin+1.e-30)
- baddata=.false.
- if(sratio.gt.1.e30) baddata=.true.
-
- return
-end function baddata
+logical function baddata(id2,nz) + + integer*2 id2(nz) + + nadd=1200 + j=0 + smin=1.e30 + smax=-smin + iz=49*12000/nadd + do i=1,iz + sq=0. + do n=1,nadd + j=j+1 + x=id2(j) + sq=sq + x*x + enddo + rms=sqrt(sq/nadd) + if(i.gt.6) then + smin=min(smin,rms) + smax=max(smax,rms) + endif + enddo + + sratio=smax/(smin+1.e-30) + baddata=.false. + if(sratio.gt.1.e30) baddata=.true. + + return +end function baddata |
