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

Commit

Permalink
Ensured that collision tracking is always turned on in SyMBA
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 14, 2022
1 parent 27a2d52 commit d20f558
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/io/io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ module subroutine io_dump_system(self, param)
select type(param)
class is (symba_parameters)
if (param%lenc_save_trajectory .or. param%lenc_save_closest) call param%encounter_history%dump(param)
if (param%lfragmentation) call param%collision_history%dump(param)
call param%collision_history%dump(param)
end select

! Dump the system history to file
Expand Down
20 changes: 9 additions & 11 deletions src/setup/setup.f90
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,15 @@ module subroutine setup_construct_system(system, param)
end associate
end if

if (param%lclose) then
allocate(collision_storage :: param%collision_history)
associate (collision_history => param%collision_history)
allocate(fraggle_io_parameters :: collision_history%nc)
call collision_history%reset()
select type(nc => collision_history%nc)
class is (fraggle_io_parameters)
nc%file_number = param%iloop / param%dump_cadence
end select
end associate
end if
allocate(collision_storage :: param%collision_history)
associate (collision_history => param%collision_history)
allocate(fraggle_io_parameters :: collision_history%nc)
call collision_history%reset()
select type(nc => collision_history%nc)
class is (fraggle_io_parameters)
nc%file_number = param%iloop / param%dump_cadence
end select
end associate
end select

end select
Expand Down

0 comments on commit d20f558

Please sign in to comment.