Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/gotm/gotm.F90
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ subroutine integrate_gotm()
#ifdef _ICE_
I_0%value = transmissivity*I_0%value
swf=melt_rate
shf=ocean_ice_heat_flux
shf=ocean_ice_heat_flux + T(nlev)*swf
ssf=ocean_ice_salt_flux
#endif
else
Expand Down
8 changes: 4 additions & 4 deletions src/meanflow/temperature.F90
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ subroutine temperature(nlev,dt,cnpar,I_0,wflux,hflux,nuh,gamh,rad)
DiffBcup = Neumann
DiffBcdw = Neumann

! HB:
! Note that this is the surface temperature flux for rigid-lid models like GOTM.
! For a free surface model the surface temperature flux must be - -hflux/(rho0*cp)
DiffTup = -T(nlev)*wflux-hflux/(rho0*cp)
! For the open ocean the surface temperature flux is only the diffusive
! component. In case of ice cover, hflux is defined as the sum of a diffusive
! and advective component.
DiffTup = -hflux/(rho0*cp)
#ifndef _ICE_
! simple sea ice model: surface heat flux switched off for sst < freezing temp
if (T(nlev) .le. -0.0575*S(nlev)) then
Expand Down
4 changes: 2 additions & 2 deletions src/util/convert_fluxes.F90
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ subroutine convert_fluxes(nlev,gravity,swf,shf,ssf,rad,Tsrf,Ssrf,tFlux,sFlux,bt
beta0 = get_beta(Ssrf,Tsrf,_ZERO_)

! temperature flux and associated buoyancy flux
tFlux = -Tsrf*swf - shf/(rho0*cp)
btFlux = gravity*alpha0*tFlux
tFlux = - shf/(rho0*cp)
btFlux = gravity*alpha0*tFlux

! salinity flux and associated buoyancy flux
sFlux = -Ssrf*swf - ssf
Expand Down