Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'xylar/ocn/fix-global-ocean-init-mode-bottom-depth' into…
Browse files Browse the repository at this point in the history
… next (PR #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
jonbob committed May 31, 2024
2 parents cd89388 + 9b4046c commit 4e3614b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4e3614b

Please sign in to comment.