Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OpenMP call in mo_read_shelfmask #497

Merged
merged 1 commit into from
Feb 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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