Nbody6
 All Files Functions Variables
dtchck.f
Go to the documentation of this file.
1 ***
2  SUBROUTINE dtchck(time,dt,dtmin)
3  IMPLICIT NONE
4  REAL*8 time,dt,dtmin
5 *
6 * Find the largest block time-step, starting with dt,
7 * that is commensurate with current time.
8 *
9  dt = max(dt,dtmin)
10  10 continue
11  if(dmod(time,dt).ne.0.d0)then
12  dt = 0.5d0*dt
13  if(dt.ge.dtmin) goto 10
14  dt = dtmin
15  endif
16 *
17  RETURN
18  END
19 ***