Go to the source code of this file.
|
subroutine | checktime (itpamp, namta, tinc, ttime, amta, tmin, inext, itp, istep, tper) |
|
◆ checktime()
subroutine checktime |
( |
integer |
itpamp, |
|
|
integer, dimension(3,*) |
namta, |
|
|
real*8 |
tinc, |
|
|
real*8 |
ttime, |
|
|
real*8, dimension(2,*) |
amta, |
|
|
real*8 |
tmin, |
|
|
integer |
inext, |
|
|
integer |
itp, |
|
|
integer |
istep, |
|
|
real*8 |
tper |
|
) |
| |
27 integer namta(3,*),itpamp,id,inew,inext,istart,iend,itp,istep
29 real*8 amta(2,*),tinc,ttime,tmin,reftime,tper
40 if((namta(3,itpamp).ge.0).or.(inext.eq.0))
then 41 if(namta(3,itpamp).lt.0)
then 46 istart=namta(1,itpamp)
48 call identamta(amta,reftime,istart,iend,id)
59 if(namta(3,itpamp).lt.0)
then 64 istart=namta(1,itpamp)
66 call identamta(amta,reftime,istart,iend,id)
77 if((inext.eq.inew).and.(inew.le.iend))
then 78 if(amta(1,inew)-reftime.lt.1.d-6*tper) inew=inew+1
84 if(inew.gt.inext)
then 85 if(namta(3,itpamp).lt.0)
then 86 tinc=amta(1,inext)-ttime
93 write(*,*)
'*ERROR in checktime: a time point' 94 write(*,*)
' precedes the minimum time tmin' 97 write(*,*)
'*WARNING in checktime: a time point' 98 write(*,*)
' precedes the initial time' 99 write(*,*)
' increment tinc; tinc is' 100 write(*,*)
' decreased to ',tinc
subroutine identamta(amta, reftime, istart, iend, id)
Definition: identamta.f:26