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

Commit

Permalink
Fixed incorrect type allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 10, 2022
1 parent 076126b commit 38b3753
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion src/encounter/encounter_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ module subroutine encounter_io_dump(self, param)

do i = 1, self%nframes
if (allocated(self%frame(i)%item)) then

select type(snapshot => self%frame(i)%item)
class is (fraggle_collision_snapshot)
param%ioutput = i
Expand Down
6 changes: 1 addition & 5 deletions src/symba/symba_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1394,11 +1394,7 @@ module subroutine symba_util_take_encounter_snapshot(self, param, t)

associate(npl => self%pl%nbody, ntp => self%tp%nbody)

if (self%plplenc_list%lcollision) then
allocate(fraggle_collision_snapshot :: snapshot)
else
allocate(encounter_snapshot :: snapshot)
end if
allocate(encounter_snapshot :: snapshot)
snapshot%t = t
snapshot%iloop = param%iloop

Expand Down

0 comments on commit 38b3753

Please sign in to comment.