Skip to content

Commit

Permalink
License line and loop bounds fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
kshedstrom committed Jun 15, 2016
1 parent c6d6b76 commit 2074943
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/core/MOM_open_boundary.F90
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
! This file is part of MOM6. See LICENSE.md for the license.
!> Controls where open boundary conditions are applied
module MOM_open_boundary

Expand Down
4 changes: 2 additions & 2 deletions src/initialization/MOM_state_initialization.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2008,11 +2008,11 @@ subroutine set_Flather_Bdry_Conds(OBC, tv, h, G, PF, tracer_Reg)
enddo ; enddo ; enddo
endif

do k=1,nz ; do j=js-1,je+1 ; do I=is-1,ie+1
do k=1,nz ; do j=jsd,jed ; do I=isd,ied
if (OBC%OBC_kind_u(I,j) == OBC_FLATHER_E) h(i+1,j,k) = h(i,j,k)
if (OBC%OBC_kind_u(I,j) == OBC_FLATHER_W) h(i,j,k) = h(i+1,j,k)
enddo ; enddo ; enddo
do k=1,nz ; do J=js-1,je+1 ; do i=is-1,ie+1
do k=1,nz ; do J=jsd,jed ; do i=isd,ied
if (OBC%OBC_kind_v(i,J) == OBC_FLATHER_N) h(i,j+1,k) = h(i,j,k)
if (OBC%OBC_kind_v(i,J) == OBC_FLATHER_S) h(i,j,k) = h(i,j+1,k)
enddo ; enddo ; enddo
Expand Down

0 comments on commit 2074943

Please sign in to comment.