Skip to content

Commit

Permalink
Fix bugs/warnings reported by CCE
Browse files Browse the repository at this point in the history
  • Loading branch information
alazzaro authored and oschuett committed May 13, 2021
1 parent 5c92432 commit a65e43c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/sap_kind_types.F
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,14 @@ END SUBROUTINE alist_post_align_blk
SUBROUTINE sap_sort(sap_int)
TYPE(sap_int_type), DIMENSION(:), POINTER :: sap_int

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

! *** Set up a sorting index

sap_init_size = SIZE(sap_int)

!$OMP DO
DO iac = 1, SIZE(sap_int)
DO iac = 1, sap_init_size
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))
Expand Down

0 comments on commit a65e43c

Please sign in to comment.