Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Fixed conversion to 8-byte integer when it is really needed
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Aug 9, 2021
1 parent 14d37ee commit c6d14b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/swiftest_driver.f90
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ program swiftest_driver
integer(I8B) :: iloop !! Loop counter
integer(I8B) :: idump !! Dump cadence counter
integer(I8B) :: iout !! Output cadence counter
!integer(I8B), parameter :: LOOPMAX = huge(iloop) !! Maximum loop value before resetting
integer(I8B) :: nloops !! Number of steps to take in the simulation
real(DP) :: start_wall_time !! Wall clock time at start of execution
real(DP) :: finish_wall_time !! Wall clock time when execution has finished
integer(I4B) :: iu !! Unit number of binary file

character(*),parameter :: statusfmt = '("Time = ", ES12.5, "; fraction done = ", F6.3, "; ' // &
'Number of active pl, tp = ", I5, ", ", I5)'

Expand Down Expand Up @@ -52,7 +52,7 @@ program swiftest_driver
iloop = 0
iout = istep_out
idump = istep_dump
nloops = ceiling(tstop / dt)
nloops = ceiling(tstop / dt, kind=I8B)
if (istep_out > 0) call nbody_system%write_frame(iu, param)
!> Define the maximum number of threads
nthreads = 1 ! In the *serial* case
Expand Down

0 comments on commit c6d14b8

Please sign in to comment.