Skip to content

Commit

Permalink
Merge branch 'cbegeman/ocn-fix-temperature-tendency' (PR #6976)
Browse files Browse the repository at this point in the history
Bugfix for frazil ice temperature tendency

Add temperature tendency due to mixing of frazil meltwater with
seawater. When frazil ice melts in MPAS-Ocean it is a freshwater volume
flux (not a virtual flux). As such, there should be two components to
the temperature tendency due to frazil melt, a latent heat flux and a
flux associated with the mixing of water at the freezing point with the
ambient seawater. The latter was not included (a bug).

Fixes #6975
[non-BFB] for all configurations with mpas-ocean
  • Loading branch information
jonbob committed Feb 13, 2025
2 parents a3a6eb5 + 90d3f90 commit f8e02d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/mpas-ocean/src/shared/mpas_ocn_frazil_forcing.F
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,10 @@ subroutine ocn_frazil_forcing_build_arrays(domain, meshPool, forcingPool, stateP
* config_frazil_ice_density ) / (config_specific_heat_sea_water * rho_sw) &
/ dt
! ocean fluid temperature is modified due to mixing of existing water with meltwater at the freezing point
frazilTemperatureTendency(k,iCell) = frazilTemperatureTendency(k,iCell) + &
meltedFrazilIceThickness * oceanFreezingTemperature / dt
! keep track of new frazil ice
sumNewThicknessWeightedSaltContent = max(0.0_RKIND,sumNewThicknessWeightedSaltContent - meltedThicknessWeightedSaltContent)
sumNewFrazilIceThickness = max(0.0_RKIND,sumNewFrazilIceThickness - meltedFrazilIceThickness)
Expand Down

0 comments on commit f8e02d7

Please sign in to comment.