Skip to content

Commit

Permalink
Change melt potential from time accumulated to instantaneous
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-marques committed Sep 26, 2018
1 parent 9f0676e commit 6f6f92a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/core/MOM.F90
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,6 @@ subroutine step_MOM(forces, fluxes, sfc_state, Time_start, time_interval, CS, &

if (therm_reset) then
CS%time_in_thermo_cycle = 0.0
if (allocated(sfc_state%melt_potential)) sfc_state%melt_potential(:,:) = 0.0
if (associated(CS%tv%frazil)) CS%tv%frazil(:,:) = 0.0
if (associated(CS%tv%salt_deficit)) CS%tv%salt_deficit(:,:) = 0.0
if (associated(CS%tv%TempxPmE)) CS%tv%TempxPmE(:,:) = 0.0
Expand Down Expand Up @@ -2870,12 +2869,13 @@ subroutine extract_surface_state(CS, sfc_state)
enddo ; enddo

do i=is,ie
! set melt_potential to zero to avoid passing previous values
sfc_state%melt_potential(i,j) = 0.0

if (G%mask2dT(i,j)>0.) then
! time accumulated melt_potential, in J/m^2
sfc_state%melt_potential(i,j) = sfc_state%melt_potential(i,j) + (CS%tv%C_p * CS%GV%Rho0 * delT(i))
else
sfc_state%melt_potential(i,j) = 0.0
endif! G%mask2dT
! instantaneous melt_potential, in J/m^2
sfc_state%melt_potential(i,j) = CS%tv%C_p * CS%GV%Rho0 * delT(i)
endif
enddo
enddo ! end of j loop
endif ! melt_potential
Expand Down
4 changes: 2 additions & 2 deletions src/core/MOM_variables.F90
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ module MOM_variables
v, & !< The mixed layer meridional velocity in m s-1.
sea_lev, & !< The sea level in m. If a reduced surface gravity is
!! used, that is compensated for in sea_lev.
melt_potential, & !< Amount of heat that can be used to melt sea ice, in J m-2.
!! This is computed w.r.t. surface freezing temperature.
melt_potential, & !< instantaneous amount of heat that can be used to melt sea ice,
!! in J m-2. This is computed w.r.t. surface freezing temperature.
ocean_mass, & !< The total mass of the ocean in kg m-2.
ocean_heat, & !< The total heat content of the ocean in C kg m-2.
ocean_salt, & !< The total salt content of the ocean in kgSalt m-2.
Expand Down

0 comments on commit 6f6f92a

Please sign in to comment.