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

Commit

Permalink
Fixed bugs in encounter checking coming from mismatched argument list…
Browse files Browse the repository at this point in the history
… in encounter_check_one
  • Loading branch information
daminton committed Sep 27, 2021
1 parent 11dc4dd commit bff585f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/encounter/encounter.f90
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ module subroutine encounter_check_all_triangular_pltp(npl, ntp, xpl, vpl, xtp, v
end subroutine encounter_check_all_triangular_pltp


module pure subroutine encounter_check_one(xr, yr, zr, vxr, vyr, vzr, dt, renc, lencounter, lvdotr)
module pure subroutine encounter_check_one(xr, yr, zr, vxr, vyr, vzr, renc, dt, lencounter, lvdotr)
!$omp declare simd(encounter_check_one)
!! author: David A. Minton
!!
Expand All @@ -212,8 +212,8 @@ module pure subroutine encounter_check_one(xr, yr, zr, vxr, vyr, vzr, dt, renc,
! Arguments
real(DP), intent(in) :: xr, yr, zr !! Relative distance vector components
real(DP), intent(in) :: vxr, vyr, vzr !! Relative velocity vector components
real(DP), intent(in) :: dt !! Step size
real(DP), intent(in) :: renc !! Square of the critical encounter distance
real(DP), intent(in) :: dt !! Step size
logical, intent(out) :: lencounter !! Flag indicating that an encounter has occurred
logical, intent(out) :: lvdotr !! Logical flag indicating the direction of the v .dot. r vector
! Internals
Expand Down
4 changes: 2 additions & 2 deletions src/modules/swiftest_classes.f90
Original file line number Diff line number Diff line change
Expand Up @@ -612,13 +612,13 @@ module subroutine encounter_check_all_triangular_pltp(npl, ntp, xpl, vpl, xtp, v
integer(I4B), intent(out) :: nenc !! Total number of encounters
end subroutine encounter_check_all_triangular_pltp

module pure subroutine encounter_check_one(xr, yr, zr, vxr, vyr, vzr, dt, renc, lencounter, lvdotr)
module pure subroutine encounter_check_one(xr, yr, zr, vxr, vyr, vzr, renc, dt, lencounter, lvdotr)
!$omp declare simd(encounter_check_one)
implicit none
real(DP), intent(in) :: xr, yr, zr !! Relative distance vector components
real(DP), intent(in) :: vxr, vyr, vzr !! Relative velocity vector components
real(DP), intent(in) :: dt !! Step size
real(DP), intent(in) :: renc !! Critical encounter distance
real(DP), intent(in) :: dt !! Step size
logical, intent(out) :: lencounter !! Flag indicating that an encounter has occurred
logical, intent(out) :: lvdotr !! Logical flag indicating the direction of the v .dot. r vector
end subroutine encounter_check_one
Expand Down

0 comments on commit bff585f

Please sign in to comment.