Skip to content
Merged
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
7 changes: 3 additions & 4 deletions columnphysics/icepack_therm_vertical.F90
Original file line number Diff line number Diff line change
Expand Up @@ -375,12 +375,11 @@ subroutine thermo_vertical (dt, aicen, &
einter = einter + hilyr * zqin(k)
enddo ! k

Tsnice = c0
if ((hslyr+hilyr) > puny) then
if (hilyr > puny) then
if (hslyr > puny) then
Tsnice = (hslyr*zTsn(nslyr) + hilyr*zTin(1)) / (hslyr+hilyr)
Tsnice = Tsnice + aicen*((hilyr*zTsn(nslyr) + hslyr*zTin(1)) / (hslyr+hilyr))
else
Tsnice = Tsf
Tsnice = Tsnice + aicen*Tsf
endif
endif

Expand Down
1 change: 1 addition & 0 deletions configuration/driver/icedrv_flux.F90
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,7 @@ subroutine init_history_therm
congel (:) = c0
frazil (:) = c0
snoice (:) = c0
Tsnice (:) = c0
dsnow (:) = c0
meltt (:) = c0
melts (:) = c0
Expand Down