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

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed array indexing problem that occurs when encountering bodies are removed from the list
  • Loading branch information
daminton committed Oct 1, 2021
1 parent 1c8d8b0 commit db7884b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/symba/symba_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,8 @@ module subroutine symba_util_rearray_pl(self, system, param)
system%plplenc_list%t(k) = plplenc_old%t(k)
system%plplenc_list%level(k) = plplenc_old%level(k)
end if
system%plplenc_list%index1(k) = findloc(pl%id(1:npl), system%plplenc_list%id1(k), dim=1)
system%plplenc_list%index2(k) = findloc(pl%id(1:npl), system%plplenc_list%id2(k), dim=1)
end do
end if
end associate
Expand Down

0 comments on commit db7884b

Please sign in to comment.