Skip to content

Commit

Permalink
Fix index error
Browse files Browse the repository at this point in the history
  • Loading branch information
MJHarrison-GFDL committed Aug 25, 2019
1 parent 5adefb7 commit 8828ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/MOM_open_boundary.F90
Original file line number Diff line number Diff line change
Expand Up @@ -4125,7 +4125,7 @@ subroutine adjustSegmentEtaToFitBathymetry(G, GV, US, segment,fld)
dilations = dilations + 1
! expand bottom-most cell only
eta(i,j,nz+1) = -segment%Htot(i,j)
segment%field(fld)%dz_src(i,k,nz)= eta(i,j,nz)-eta(i,j,nz+1)
segment%field(fld)%dz_src(i,j,nz)= eta(i,j,nz)-eta(i,j,nz+1)
! if (eta(i,j,1) <= eta(i,j,nz+1)) then
! do k=1,nz ; segment%field(fld)%dz_src(i,j,k) = (eta(i,j,1) + G%bathyT(i,j)) / real(nz) ; enddo
! else
Expand Down

0 comments on commit 8828ecd

Please sign in to comment.