Skip to content

Commit

Permalink
Debug waterPressureSmooth
Browse files Browse the repository at this point in the history
fixes minor bug in waterPRessureSmooth calculation
  • Loading branch information
alexolinhager committed May 22, 2024
1 parent e76d9a9 commit 1f94eb5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2674,7 +2674,7 @@ subroutine calc_waterPressureSmooth(block,err)
do iCell = 1, nCells
if (li_mask_is_grounded_ice(cellMask(iCell))) then !smooth over all grounded cells
totalPressure = pressureField(iCell)
totalPressure = pressureField(iCell)*areaCell(iCell)
totalArea = areaCell(iCell)
do jCell = 1, nEdgesOnCell(iCell)
Expand All @@ -2688,7 +2688,7 @@ subroutine calc_waterPressureSmooth(block,err)
endif
end do
waterPressureSmooth(iCell) = totalPressure / totalArea !area-weighted average height
waterPressureSmooth(iCell) = totalPressure / totalArea !area-weighted average pressure
endif
end do
Expand Down

0 comments on commit 1f94eb5

Please sign in to comment.