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

Commit

Permalink
Fixed bug in OMP directive
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Oct 6, 2021
1 parent 8256b2c commit fa50454
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/encounter/encounter.f90
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module subroutine encounter_check_all_flat_plpl(nplplm, k_plpl, x, v, renc, dt,
integer(I4B), dimension(:,:), intent(in) :: k_plpl !! List of all pl-pl encounters
real(DP), dimension(:,:), intent(in) :: x !! Position vectors of massive bodies
real(DP), dimension(:,:), intent(in) :: v !! Velocity vectors of massive bodies
real(DP), dimension(:), intent(in) :: renc !! Hill's radii of massive bodies
real(DP), dimension(:), intent(in) :: renc !! Hill's radii of massive bodies
real(DP), intent(in) :: dt !! Step size
logical, dimension(:), intent(out) :: lencounter !! Logical array indicating which pair is in an encounter state
logical, dimension(:), intent(out) :: loc_lvdotr !! Logical array indicating the sign of v .dot. x for each encounter
Expand All @@ -25,7 +25,7 @@ module subroutine encounter_check_all_flat_plpl(nplplm, k_plpl, x, v, renc, dt,

!$omp parallel do simd default(private) schedule(static)&
!$omp shared(nplplm, k_plpl, x, v, renc, dt, lencounter, loc_lvdotr) &
!$omp lastprivate(xr, yr, zr, vxr, vyr, vzr, renc1, renc2)
!$omp lastprivate(xr, yr, zr, vxr, vyr, vzr, renc12)
do k = 1_I8B, nplplm
i = k_plpl(1, k)
j = k_plpl(2, k)
Expand Down

0 comments on commit fa50454

Please sign in to comment.