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

do not correct zqsn in condensation step when ktherm=2 #3

Merged
merged 1 commit into from
Oct 5, 2023
Merged
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
fixed a bug of correcting zqsn(1) prematually when ktherm=2
  • Loading branch information
zhaobin74 committed Oct 4, 2023
commit 73467f62940bfaa7ce3eaeb53cf93c0b0fbc8416
4 changes: 3 additions & 1 deletion columnphysics/icepack_therm_vertical.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1344,8 +1344,10 @@ subroutine thickness_changes (nilyr, nslyr, &
if (hstot > puny) then
zqsn(1) = (dzs(1) * zqsn(1) &
+ dhs * zqsnew) / hstot
if (ktherm < 2) then
! avoid roundoff errors
zqsn(1) = min(zqsn(1), -rhos*Lfresh)
zqsn(1) = min(zqsn(1), -rhos*Lfresh)
endif
endif
#endif
dzs(1) = dzs(1) + dhs
Expand Down