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

Commit

Permalink
Fixed array range problem that was causing an exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Aug 23, 2021
1 parent 321da65 commit c3022d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/kick/kick.f90
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module subroutine kick_getacch_int_pl(self)
if (lmask(i) .and. lmask(j)) call kick_getacch_int_one_pl(rji2, dx, dy, dz, Gmass(i), Gmass(j), ahi(1,i), ahi(2,i), ahi(3,i), ahj(1,j), ahj(2,j), ahj(3,j))
end do
!$omp end parallel do
ah(:,:) = ah(:,:) + ahi(:,:) + ahj(:,:)
ah(:,1:self%nbody) = ah(:,1:self%nbody) + ahi(:,1:self%nbody) + ahj(:,1:self%nbody)
end associate

return
Expand Down
4 changes: 2 additions & 2 deletions src/symba/symba_kick.f90
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module subroutine symba_kick_getacch_int_pl(self)
if ((rji2 > rlim2) .and. lmask(i) .and. lmask(j)) call kick_getacch_int_one_pl(rji2, dx, dy, dz, Gmass(i), Gmass(j), ahi(1,i), ahi(2,i), ahi(3,i), ahj(1,j), ahj(2,j), ahj(3,j))
end do
!$omp end parallel do
ah(:,:) = ah(:,:) + ahi(:,:) + ahj(:,:)
ah(:,1:self%nbody) = ah(:,1:self%nbody) + ahi(:,1:self%nbody) + ahj(:,1:self%nbody)
end associate

return
Expand Down Expand Up @@ -96,7 +96,7 @@ module subroutine symba_kick_getacch_pl(self, system, param, t, lbeg)
if (rji2 > rlim2) call kick_getacch_int_one_pl(rji2, dx, dy, dz, Gmass(i), Gmass(j), ahi(1,i), ahi(2,i), ahi(3,i), ahj(1,j), ahj(2,j), ahj(3,j))
end do
!$omp end parallel do
ah(:,:) = ah(:,:) - ahi(:,:) - ahj(:,:)
ah(:,1:self%nbody) = ah(:,1:self%nbody) - ahi(:,1:self%nbody) - ahj(:,1:self%nbody)
end associate
end select

Expand Down

0 comments on commit c3022d3

Please sign in to comment.