summaryrefslogtreecommitdiff
path: root/lib/flat1.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
committerChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
commitf647d78463c1250ce9c99af664615fafccf5e959 (patch)
tree5b00428cef68aef1c9d407e2d4535687422419b6 /lib/flat1.f90
parent0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff)
New upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'lib/flat1.f90')
-rw-r--r--[-rwxr-xr-x]lib/flat1.f9046
1 files changed, 23 insertions, 23 deletions
diff --git a/lib/flat1.f90 b/lib/flat1.f90
index 1de8b95c..5a5f7230 100755..100644
--- a/lib/flat1.f90
+++ b/lib/flat1.f90
@@ -1,23 +1,23 @@
-subroutine flat1(savg,iz,nsmo,syellow)
-
- real savg(iz)
- real syellow(iz)
- real x(8192)
-
- ia=nsmo/2 + 1
- ib=iz - nsmo/2 - 1
- nstep=20
- nh=nstep/2
- do i=ia,ib,nstep
- call pctile(savg(i-nsmo/2),nsmo,50,x(i))
- x(i-nh:i+nh-1)=x(i)
- enddo
- x(1:ia-1)=x(ia)
- x(ib+1:iz)=x(ib)
-
- x0=0.001*maxval(x(iz/10:(9*iz)/10))
- syellow(1:iz)=savg(1:iz)/(x(1:iz)+x0)
-
- return
-end subroutine flat1
-
+subroutine flat1(savg,iz,nsmo,syellow)
+
+ real savg(iz)
+ real syellow(iz)
+ real x(8192)
+
+ ia=nsmo/2 + 1
+ ib=iz - nsmo/2 - 1
+ nstep=20
+ nh=nstep/2
+ do i=ia,ib,nstep
+ call pctile(savg(i-nsmo/2),nsmo,50,x(i))
+ x(i-nh:i+nh-1)=x(i)
+ enddo
+ x(1:ia-1)=x(ia)
+ x(ib+1:iz)=x(ib)
+
+ x0=0.001*maxval(x(iz/10:(9*iz)/10))
+ syellow(1:iz)=savg(1:iz)/(x(1:iz)+x0)
+
+ return
+end subroutine flat1
+