Skip to content

Commit

Permalink
Adds parenthesis around named critical sections
Browse files Browse the repository at this point in the history
  • Loading branch information
singhbalwinder committed Jul 6, 2022
1 parent 8bb433b commit 2094b26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/mpas-seaice/src/column/ice_warnings.F90
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ subroutine add_warning(warning)
integer :: &
nWarningsArray, & ! size of warnings array at start
iWarning ! warning index
!$omp critical ice_warnings_add_warning
!$omp critical (ice_warnings_add_warning_critical)
! check if warnings array is not allocated
if (.not. allocated(warnings)) then

Expand Down Expand Up @@ -90,7 +90,7 @@ subroutine add_warning(warning)

! add the new warning
warnings(nWarnings) = trim(warning)
!$omp end critical ice_warnings_add_warning
!$omp end critical (ice_warnings_add_warning_critical)
end subroutine add_warning

!=======================================================================
Expand Down

0 comments on commit 2094b26

Please sign in to comment.