Skip to content

Commit

Permalink
#64 Updated comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiker committed Jan 31, 2024
1 parent a7d7479 commit 79bc758
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions finite_difference/src/grid_mod.f90
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,15 @@ subroutine grid_init(grid, dxarg, dyarg, tmask)
!> TODO add support for PBCs in parallel
else
! No T-mask supplied. Check if grid has PBCs, which isn't
! supported yet
if( (get_num_ranks() > 1) .and. &
( (grid%boundary_conditions(1) == GO_BC_PERIODIC) .or. &
(grid%boundary_conditions(2) == GO_BC_PERIODIC) ) ) then
! supported yet in case of distributed memory usage (i.e.
! if there is more than one process)
if ( (get_num_ranks() > 1) .and. &
( (grid%boundary_conditions(1) == GO_BC_PERIODIC) .or. &
(grid%boundary_conditions(2) == GO_BC_PERIODIC) ) ) then
call gocean_stop('grid_init: ERROR: Periodic boundary conditions ' &
& // 'are not yet supported.')
end if

! Initialise an artificial all-wet tmask. If using OpenMP then apply
! first-touch policy for data locality.
!$OMP PARALLEL DO schedule(runtime), default(none), private(ji,jj), &
Expand Down

0 comments on commit 79bc758

Please sign in to comment.