Skip to content
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
17 changes: 13 additions & 4 deletions src/core_ocean/mode_init/mpas_ocn_init_tidal_boundary.F
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,19 @@ subroutine ocn_init_setup_tidal_boundary(domain, iErr)!{{{
end if

! Set refBottomDepth, bottomDepth, and maxLevelCell
do k = 1, nVertLevels
refBottomDepth(k) = config_tidal_boundary_left_bottom_depth + &
(config_tidal_boundary_right_bottom_depth - config_tidal_boundary_left_bottom_depth)* interfaceLocations(k+1)
end do
if (min(config_tidal_boundary_left_bottom_depth, config_tidal_boundary_right_bottom_depth) < 0.0_RKIND) then
! consider the case where there is wetting / drying and vertical mesh resolution is needed "on land"
do k = 1, nVertLevels
refBottomDepth(k) = config_tidal_boundary_left_bottom_depth + &
(config_tidal_boundary_right_bottom_depth - config_tidal_boundary_left_bottom_depth)* interfaceLocations(k+1)
end do
else
! assumes we just need to build vertical mesh to deepest point (e.g., no "on land' vertical mesh)
do k = 1, nVertLevels
refBottomDepth(k) = \
max(config_tidal_boundary_left_bottom_depth, config_tidal_boundary_right_bottom_depth) * interfaceLocations(k+1)
end do
end if

if (config_tidal_boundary_use_distances) then
yMin = config_tidal_boundary_left_value
Expand Down