Skip to content

fix FV frontogenesis bug and diagnostic PS/PSDRY bug in SE log file#1467

Open
PeterHjortLauritzen wants to merge 2 commits intoESCOMP:cam_developmentfrom
PeterHjortLauritzen:frontogenesis-fv-fix
Open

fix FV frontogenesis bug and diagnostic PS/PSDRY bug in SE log file#1467
PeterHjortLauritzen wants to merge 2 commits intoESCOMP:cam_developmentfrom
PeterHjortLauritzen:frontogenesis-fv-fix

Conversation

@PeterHjortLauritzen
Copy link
Collaborator

Fix bug in frontogenesis function for FV dycore: partially closes #1414
(science tested by ACOM; there will be namelist changes to re-tune QBO with the fixed frontogenesis function)
@fvitt @mbramberger @tilmes @chihchen24

Minor bug fix for diagnoatics written to log file with spectral-element dynamical core (PS and PSDRY are missing the pressure at model top).

pty(i,k,j) = pty(i,k,j) / aearth
!
! Topography correction term:
! Horizontal temperature gradient for fronotogenesis function was originally computed over
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it currently being computed over terrain-following coordinates and then correction terms applied? If so, I would change this from was to is. I believe this is the case. If on the other hand, this is talking about how things were computed prior to this PR, we typically do not have comments like that in the code.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

120-121 is terrain following.
127-128 is the correction terms.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With that info, my request is to change was to is in this sentence

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PeterHjortLauritzen - if you make this minor comment update, I believe this PR is ready to go, correct?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment beautified!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants