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

Commit

Permalink
Fixed allocation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 23, 2022
1 parent 26d0bbb commit c1964db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/swiftest/swiftest_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ module subroutine swiftest_io_dump_system(self, param)
if (idx > NDUMPFILES) idx = 1

! Dump the encounter history if necessary
if (param%lenc_save_trajectory .or. param%lenc_save_closest) call self%encounter_history%dump(param)
call self%collision_history%dump(param)
if (param%lenc_save_trajectory .or. param%lenc_save_closest .and. allocated(self%encounter_history)) call self%encounter_history%dump(param)
if (allocated(self%collision_history)) call self%collision_history%dump(param)

! Dump the nbody_system history to file
call param%system_history%dump(param)
Expand Down

0 comments on commit c1964db

Please sign in to comment.