diff options
| author | Christoph Berg <christoph.berg@credativ.de> | 2021-09-28 10:23:10 +0200 |
|---|---|---|
| committer | Christoph Berg <christoph.berg@credativ.de> | 2021-09-28 10:23:10 +0200 |
| commit | 6ec76defdb6622d379e68ee4a4d45f8c9758bb1f (patch) | |
| tree | 0278146fe55991c45982b83f28a11a13b23bcd7e /lib/makepings.f90 | |
| parent | 85895feeaf88bcde26bbfc71e8f6b2047c0f5f41 (diff) | |
New upstream version 2.5.0+repackupstream/2.5.0+repack
Diffstat (limited to 'lib/makepings.f90')
| -rw-r--r-- | lib/makepings.f90 | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/makepings.f90 b/lib/makepings.f90 index beedcc79..0d42df00 100644 --- a/lib/makepings.f90 +++ b/lib/makepings.f90 @@ -1,20 +1,19 @@ -subroutine makepings(pings,npts,width,sig) +subroutine makepings(pings,nTRperiod,npts,width,sig) real pings(npts) real*8 t - real t0(14) + real t0(29) - iping0=-999 dt=1.0/12000.0 - do i=1,14 + do i=1,nTRperiod-1 t0(i)=i !Make pings at t=1, 2, ... 14 s. enddo amp=sig do i=1,npts - iping=min(max(1,i/12000),14) + iping=min(max(1,i/12000),nTRperiod-1) t=(i*dt-t0(iping))/width - if(t.lt.0.d0 .and. t.lt.10.0) then !???? + if(t.lt.0.d0 .or. t.gt.10.0) then fac=0. else fac=2.718*t*dexp(-t) |
