Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix outgoing lw for history and coupling. #999

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
7 changes: 5 additions & 2 deletions cicecore/cicedyn/general/ice_flux.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1209,15 +1209,15 @@ subroutine scale_fluxes (nx_block, ny_block, &
real (kind=dbl_kind) :: &
ar, & ! 1/aice
stefan_boltzmann, &
Tffresh
Tffresh, puny

integer (kind=int_kind) :: &
i, j ! horizontal indices

character(len=*), parameter :: subname = '(scale_fluxes)'

call icepack_query_parameters(stefan_boltzmann_out=stefan_boltzmann, &
Tffresh_out=Tffresh)
Tffresh_out=Tffresh, puny_out=puny)
call icepack_warnings_flush(nu_diag)
if (icepack_warnings_aborted()) call abort_ice(error_message=subname, &
file=__FILE__, line=__LINE__)
Expand All @@ -1231,7 +1231,10 @@ subroutine scale_fluxes (nx_block, ny_block, &
fsens (i,j) = fsens (i,j) * ar
flat (i,j) = flat (i,j) * ar
fswabs (i,j) = fswabs (i,j) * ar
if (flwout(i,j) > -puny) &
flwout (i,j) = -stefan_boltzmann *(Tf(i,j) + Tffresh)**4
flwout (i,j) = flwout (i,j) * ar
! Special case where aice_init was zero and aice > 0.
dabail10 marked this conversation as resolved.
Show resolved Hide resolved
evap (i,j) = evap (i,j) * ar
Tref (i,j) = Tref (i,j) * ar
Qref (i,j) = Qref (i,j) * ar
Expand Down
Loading