diff options
| author | Christoph Berg <christoph.berg@credativ.de> | 2022-08-23 10:23:31 +0200 |
|---|---|---|
| committer | Christoph Berg <christoph.berg@credativ.de> | 2022-08-23 10:23:31 +0200 |
| commit | 0e579a45e2e5823f90e2632073749583cd15fa0d (patch) | |
| tree | 5e709e13d41c8ea0da0968fb6c4566057b4b7909 /lib/flat1b.f90 | |
| parent | 28d1767618141cd6481de2e93e36e3dfa555d4b4 (diff) | |
| parent | 2d1068e60bce7ae1fff11623454900e8cee956b1 (diff) | |
Update upstream source from tag 'upstream/2.6.0_rc3+repack'
Update to upstream version '2.6.0~rc3+repack'
with Debian dir 9ee8bc3a4b60bb88f4d57c7d1f2d37dbc1632144
Diffstat (limited to 'lib/flat1b.f90')
| -rwxr-xr-x | lib/flat1b.f90 | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/lib/flat1b.f90 b/lib/flat1b.f90 index bc22b855..1059dbcc 100755 --- a/lib/flat1b.f90 +++ b/lib/flat1b.f90 @@ -1,29 +1,29 @@ -subroutine flat1b(psavg,nsmo,s2,nh,nsteps,nhmax,nsmax) - - real psavg(nh) - real s2(nhmax,nsmax) - real x(8192) - - ia=nsmo/2 + 1 - ib=nh - nsmo/2 - 1 - do i=ia,ib - call pctile(psavg(i-nsmo/2),nsmo,50,x(i)) - enddo - do i=1,ia-1 - x(i)=x(ia) - enddo - do i=ib+1,nh - x(i)=x(ib) - enddo - - do i=1,nh - psavg(i)=psavg(i)/x(i) - do j=1,nsteps - s2(i,j)=s2(i,j)/x(i) - enddo - enddo - - return -end subroutine flat1b - - +subroutine flat1b(psavg,nsmo,s2,nh,nsteps,nhmax,nsmax)
+
+ real psavg(nh)
+ real s2(nhmax,nsmax)
+ real x(8192)
+
+ ia=nsmo/2 + 1
+ ib=nh - nsmo/2 - 1
+ do i=ia,ib
+ call pctile(psavg(i-nsmo/2),nsmo,50,x(i))
+ enddo
+ do i=1,ia-1
+ x(i)=x(ia)
+ enddo
+ do i=ib+1,nh
+ x(i)=x(ib)
+ enddo
+
+ do i=1,nh
+ psavg(i)=psavg(i)/x(i)
+ do j=1,nsteps
+ s2(i,j)=s2(i,j)/x(i)
+ enddo
+ enddo
+
+ return
+end subroutine flat1b
+
+
|
