diff options
| author | hibby <d@vehibberd.com> | 2018-02-16 15:18:44 +0000 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2018-02-16 15:18:44 +0000 |
| commit | 368f5331a7641772aa7e0cd1feea57d09a394a36 (patch) | |
| tree | b421ac60cc6eb726896ea268ea24e47fc4ce7c88 /lib/flat1.f90 | |
| parent | 71c717edc92fa771c857b3c2e5ed65f523f68f90 (diff) | |
| parent | 37f727ac0746fd85504aa46c1f023c09b3eff33a (diff) | |
Update upstream source from tag 'upstream/1.8.0+repack'
Update to upstream version '1.8.0+repack'
with Debian dir a83ef78cb70a32d1211871fdc08f3ffa295e45a8
Diffstat (limited to 'lib/flat1.f90')
| -rw-r--r-- | lib/flat1.f90 | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/flat1.f90 b/lib/flat1.f90 index b9dfdd1d..1de8b95c 100644 --- a/lib/flat1.f90 +++ b/lib/flat1.f90 @@ -12,14 +12,10 @@ subroutine flat1(savg,iz,nsmo,syellow) call pctile(savg(i-nsmo/2),nsmo,50,x(i))
x(i-nh:i+nh-1)=x(i)
enddo
- do i=1,ia-1
- x(i)=x(ia)
- enddo
- do i=ib+1,iz
- x(i)=x(ib)
- enddo
+ x(1:ia-1)=x(ia)
+ x(ib+1:iz)=x(ib)
- x0=0.001*maxval(x(1:iz))
+ x0=0.001*maxval(x(iz/10:(9*iz)/10))
syellow(1:iz)=savg(1:iz)/(x(1:iz)+x0)
return
|
