Skip to content

Commit

Permalink
update OMP CRITICAL syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
apcraig committed Sep 21, 2018
1 parent b3c5787 commit a91122f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions columnphysics/icepack_warnings.F90
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ subroutine icepack_warnings_add(warning)
iWarning ! warning index
character(len=*),parameter :: subname='(icepack_warnings_add)'

!$OMP CRITICAL warnings_add
!$OMP CRITICAL (omp_warnings_add)
! check if warnings array is not allocated
if (.not. allocated(warnings)) then

Expand Down Expand Up @@ -194,7 +194,7 @@ subroutine icepack_warnings_add(warning)

! increase warning number
nWarnings = nWarnings + 1
!$OMP END CRITICAL warnings_add
!$OMP END CRITICAL (omp_warnings_add)

! add the new warning
warnings(nWarnings) = trim(warning)
Expand Down

0 comments on commit a91122f

Please sign in to comment.