summaryrefslogtreecommitdiff
path: root/lib/flat1.f90
diff options
context:
space:
mode:
authortony mancill <tmancill@debian.org>2026-04-12 08:46:47 -0700
committertony mancill <tmancill@debian.org>2026-04-12 08:46:47 -0700
commitcd2dad3bc7ae0ee0a18b7b20a945009362ec3851 (patch)
tree5a622ec4193e9bc899f6499f936848a661be29cb /lib/flat1.f90
parent558c0b9d6ecf70c5222e2069ece1fea3656c75d7 (diff)
parent291b3817bf0c7a742e9e17d42c94fc8c9530e40d (diff)
Merge branch 'debian/latest' into debian/trixie-backports
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
+