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

Commit

Permalink
Fixed issue where dump files were not being written if there were no …
Browse files Browse the repository at this point in the history
…bodies of a given type
  • Loading branch information
daminton committed Aug 19, 2021
1 parent 2648f86 commit 206a5ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io/io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ module subroutine io_dump_system(self, param)
call dump_param%dump(param_file_name)

call self%cb%dump(dump_param)
if (self%pl%nbody > 0) call self%pl%dump(dump_param)
if (self%tp%nbody > 0) call self%tp%dump(dump_param)
call self%pl%dump(dump_param)
call self%tp%dump(dump_param)

idx = idx + 1
if (idx > NDUMPFILES) idx = 1
Expand Down

0 comments on commit 206a5ab

Please sign in to comment.