-
Notifications
You must be signed in to change notification settings - Fork 153
Fix Tsnice calculation #542
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -378,9 +378,9 @@ subroutine thermo_vertical (dt, aicen, & | |
| Tsnice = c0 | ||
| if ((hslyr+hilyr) > puny) then | ||
| if (hslyr > puny) then | ||
eclare108213 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Tsnice = (hslyr*zTsn(nslyr) + hilyr*zTin(1)) / (hslyr+hilyr) | ||
| Tsnice = Tsnice + aicen*((hslyr*zTsn(nslyr) + hilyr*zTin(1)) / (hslyr+hilyr)) | ||
|
||
| else | ||
| Tsnice = Tsf | ||
| Tsnice = Tsnice + aicen*Tsf | ||
| endif | ||
| endif | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this Tsnice = c0 is in the wrong location.
thermo_verticalis called for once for each thickness category, which means Tsnice=0 gets reset every time and the result would be just the temperature for the ncat = 5There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tsnice is now initialized in icedrv_flux.F90 and ice_flux.F90.