Skip to content

Commit

Permalink
Merge branch 'xylar/ocn/fix-global-ocean-init-mode-bottom-depth' (PR #…
Browse files Browse the repository at this point in the history
…6454)

Fix bottom depth deepening in global_ocean init mode

A bug was introduced in #6310 that made the ocean shallower rather than
deeper than the minimum allowed depth. This merge fixes that bug.

Fixes #6453
[BFB] -- mpas-ocean standalone only
  • Loading branch information
jonbob committed Jun 3, 2024
2 parents a3239d0 + 9b4046c commit 8939709
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ subroutine ocn_init_setup_global_ocean_create_model_topo(domain, iErr)!{{{
if (isOcean) then
! Enforce minimum depth
bottomDepth(iCell) = max(bottomDepthObserved(iCell), config_global_ocean_minimum_depth)
bottomDepth(iCell) = min(bottomDepth(iCell), refBottomDepth(minimum_levels))
bottomDepth(iCell) = max(bottomDepth(iCell), refBottomDepth(minimum_levels))

maxLevelCell(iCell) = -1
do k = 1, nVertLevels
Expand Down

0 comments on commit 8939709

Please sign in to comment.