Skip to content

Commit

Permalink
Add missing OMP PARALLEL to sap_sort()
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed May 16, 2021
1 parent 4e2c386 commit 0a6a80a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sap_kind_types.F
Original file line number Diff line number Diff line change
Expand Up @@ -234,20 +234,20 @@ END SUBROUTINE alist_post_align_blk
SUBROUTINE sap_sort(sap_int)
TYPE(sap_int_type), DIMENSION(:), POINTER :: sap_int

INTEGER :: iac, na, sap_int_size
INTEGER :: iac, na

! *** Set up a sorting index

sap_int_size = SIZE(sap_int)
!$OMP PARALLEL DEFAULT(NONE) SHARED(sap_int) PRIVATE(iac,na)
!$OMP DO
DO iac = 1, sap_int_size
DO iac = 1, SIZE(sap_int)
IF (.NOT. ASSOCIATED(sap_int(iac)%alist)) CYCLE
na = SIZE(sap_int(iac)%alist)
ALLOCATE (sap_int(iac)%asort(na), sap_int(iac)%aindex(na))
sap_int(iac)%asort(1:na) = sap_int(iac)%alist(1:na)%aatom
CALL sort(sap_int(iac)%asort, na, sap_int(iac)%aindex)
END DO
!$OMP END DO
!$OMP END PARALLEL

END SUBROUTINE sap_sort

Expand Down

0 comments on commit 0a6a80a

Please sign in to comment.