Skip to content

Commit

Permalink
Fix OpenMP call in mo_read_shelfmask (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasTorsvik authored Feb 17, 2025
1 parent bbffcd3 commit 4a23ec5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hamocc/mo_read_shelfmask.F90
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ subroutine ini_read_shelfmask(kpie,kpje,kbnd,pbath,omask)
ncstat=nf90_close(ncid)
else
! reconstruct shelf sea mask from internal bathymetry
!$OMP DO PARALLEL PRIVATE (i,j)
!$OMP PARALLEL DO PRIVATE (i,j)
do j=1,kpje
do i=1,kpie
if((omask(i,j) > 0.5) .and. (pbath(i,j) <= shelfbreak_depth)) then
Expand All @@ -116,7 +116,7 @@ subroutine ini_read_shelfmask(kpie,kpje,kbnd,pbath,omask)
!$OMP END PARALLEL DO
endif

!$OMP DO PARALLEL PRIVATE (i,j)
!$OMP PARALLEL DO PRIVATE (i,j)
! Eventually fill the logical shelfsea mask field
do j = 1,kpje
do i = 1,kpie
Expand Down

0 comments on commit 4a23ec5

Please sign in to comment.