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

Commit

Permalink
Fixed bad openmp sharing directives.
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Oct 1, 2021
1 parent 9bd7246 commit 73407cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/encounter/encounter.f90
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ subroutine encounter_check_all_sort_and_sweep_plpl(npl, nplm, x, v, renc, dt, lv

! Sweep the intervals for each of the massive bodies along one dimension
!$omp parallel do default(private) schedule(static)&
!$omp shared(aabb, lenc, ind_arr)
!$omp shared(aabb, lenc, ind_arr) &
!$omp firstprivate(npl)
do i = 1, npl
ibox = aabb(1)%ibeg(i)
nbox = aabb(1)%iend(i) - 1
Expand Down Expand Up @@ -229,7 +230,7 @@ subroutine encounter_check_all_sort_and_sweep_plpl(npl, nplm, x, v, renc, dt, lv
lenc_final(:) = .true.

!$omp parallel do simd default(firstprivate) schedule(static)&
!$omp shared(lenc_final, lvdotr_final) &
!$omp shared(lenc_final, lvdotr_final, index1, index2, x, v) &
!$omp lastprivate(i, j, xr, yr, zr, vxr, vyr, vzr, renc12)
do k = 1, nenc
i = index1(k)
Expand Down

0 comments on commit 73407cd

Please sign in to comment.