Skip to content

Commit

Permalink
Change k-loop limits for wettingVelocityFactor
Browse files Browse the repository at this point in the history
  • Loading branch information
cbegeman committed Apr 6, 2023
1 parent 9933271 commit 38968b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/mpas-ocean/src/shared/mpas_ocn_wetting_drying.F
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ subroutine ocn_wetting_drying_wettingVelocity(layerThickEdgeFlux, layerThickness
! 2*critical thickness, apply damping at each edge
do i = 1, nEdgesOnCell(iCell)
iEdge = edgesOnCell(i, iCell)
if (k <= maxLevelEdgeBot(iEdge) .or. k >= minLevelEdgeTop(iEdge)) then
if (k <= maxLevelEdgeBot(iEdge) .and. k >= minLevelEdgeTop(iEdge)) then
if ( normalVelocity(k, iEdge) * edgeSignOnCell(i, iCell) <= 0.0_RKIND ) then
wettingVelocityFactor(k, iEdge) = 1.0_RKIND - &
tanh(50.0_RKIND * (layerThickness - hRampMin)/hRampMin)
Expand Down

0 comments on commit 38968b3

Please sign in to comment.