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

Commit

Permalink
Fixed array index bug introduced in the last fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Aug 20, 2021
1 parent a252b6f commit 971522b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/symba/symba_collision.f90
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,11 @@ module function symba_collision_casemerge(system, param, family, x, v, mass, rad
if (i == ibiggest) cycle
if (system%plplenc_list%id1(k) == pl%id(i)) then
system%plplenc_list%id1(k) = pl%id(ibiggest)
system%plplenc_list%index1 = i
system%plplenc_list%index1(k) = i
end if
if (system%plplenc_list%id2(k) == pl%id(i)) then
system%plplenc_list%id2(k) = pl%id(ibiggest)
system%plplenc_list%index2 = i
system%plplenc_list%index2(k) = i
end if
if (system%plplenc_list%id1(k) == system%plplenc_list%id2(k)) system%plplenc_list%status(k) = INACTIVE
end do
Expand Down

0 comments on commit 971522b

Please sign in to comment.