Skip to content

Commit

Permalink
adds name to the omp critical section
Browse files Browse the repository at this point in the history
  • Loading branch information
singhbalwinder committed Jul 6, 2022
1 parent dc8e126 commit 8bb433b
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
!$omp critical ice_warnings_add_warning
! 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
!$omp end critical ice_warnings_add_warning
end subroutine add_warning

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

0 comments on commit 8bb433b

Please sign in to comment.