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

Commit

Permalink
Added SyMBA-specific status output that includes nplm and npl
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Aug 20, 2021
1 parent 3c14d19 commit b2a9fc0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/io/io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ module subroutine io_dump_system(self, param)
real(DP) :: deltawall, wallperstep, tfrac
integer(I8B) :: clock_count, count_rate, count_max
character(*), parameter :: statusfmt = '("Time = ", ES12.5, "; fraction done = ", F6.3, "; Number of active pl, tp = ", I5, ", ", I5)'
character(*), parameter :: symbastatfmt = '("Time = ", ES12.5, "; fraction done = ", F6.3, "; Number of active plm, pl, tp = ", I5, ", ", I5, ", ", I5)'
character(len=*), parameter :: walltimefmt = '(" Wall time (s): ", es12.5, "; Wall time/step in this interval (s): ", es12.5)'
logical, save :: lfirst = .true.
real(DP), save :: start, finish
Expand Down Expand Up @@ -209,7 +210,12 @@ module subroutine io_dump_system(self, param)
deltawall = clock_count / (count_rate * 1.0_DP) - finish
wallperstep = deltawall / param%istep_dump
finish = clock_count / (count_rate * 1.0_DP)
write(*, statusfmt) param%t, tfrac, self%pl%nbody, self%tp%nbody
select type(pl => self%pl)
class is (symba_pl)
write(*, symbastatfmt) param%t, tfrac, pl%nplm, pl%nbody, self%tp%nbody
class default
write(*, statusfmt) param%t, tfrac, pl%nbody, self%tp%nbody
end select
write(*, walltimefmt) finish - start, wallperstep
if (param%lenergy) call self%conservation_report(param, lterminal=.true.)
end if
Expand Down

0 comments on commit b2a9fc0

Please sign in to comment.