Skip to content

Commit

Permalink
prevent OBL depths deeper than the bathymetric depth
Browse files Browse the repository at this point in the history
  • Loading branch information
alperaltuntas committed May 17, 2018
1 parent 4dd0111 commit cfc6742
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/parameterizations/vertical/MOM_KPP.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1548,6 +1548,9 @@ subroutine KPP_smooth_BLD(CS,G,GV,h)
enddo
enddo

! prevent OBL depths deeper than the bathymetric depth
where (CS%OBLdepth > G%bathyT) CS%OBLdepth = G%bathyT

! Update kOBL for smoothed OBL depths
do j = G%jsc, G%jec
do i = G%isc, G%iec
Expand Down

0 comments on commit cfc6742

Please sign in to comment.