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

Commit

Permalink
Fixed issue that was causing RMVS to segfault when the number of mass…
Browse files Browse the repository at this point in the history
…ive bodies are 0. It defaults back to WHM in that case
  • Loading branch information
daminton committed Nov 29, 2023
1 parent 853b443 commit ec090f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rmvs/rmvs_step.f90
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module subroutine rmvs_step_system(self, param, t, dt)
logical :: lencounter, lfirstpl
real(DP), dimension(:,:), allocatable :: rbeg, rend, vbeg

if (self%tp%nbody == 0) then
if ((self%tp%nbody == 0) .or. (self%pl%nbody == 0)) then
call whm_step_system(self, param, t, dt)
else
select type(cb => self%cb)
Expand Down

0 comments on commit ec090f4

Please sign in to comment.