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

Fixed a bug related to sensible/latent heat fluxes for AQM coupling (Issue#945) #951

Closed
wants to merge 1 commit into from

Conversation

ChunxiZhang-NOAA
Copy link
Collaborator

A bug is fixed which is described in Issue#945.
Currently, this PR only fixed the bug that caused model crashes due to the unallocated variables dtsfc_cice and dqsfc_cice which are only allocated when cplflx=.true. in GFS_typedefs.F90.
There are potential other issues. For instance, when (cplaqm .and. .not.cplflx) is ture, dtsfci_cpl and dqsfci_cpl are only assigned values over ocean (e.g., oceanfrac > 0).

Copy link
Collaborator

@mzhangw mzhangw left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@grantfirl
Copy link
Collaborator

Does anyone know if @rmontuoro (the original author of this section) agrees with the solution?

Copy link
Collaborator

@grantfirl grantfirl left a comment

Choose a reason for hiding this comment

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

I'm assuming that the bug is a result of copy/paste for the case when cplflx = T above? Regardless, the fix should work to fix the reported issue.

@ChunxiZhang-NOAA
Copy link
Collaborator Author

@grantfirl Maybe we should invite Raffaele to review this code change.

@rmontuoro
Copy link
Contributor

@ChunxiZhang-NOAA, @grantfirl - Thanks. I will take a look and get back to you.

@rmontuoro
Copy link
Contributor

The proposed changes do not address the lack of surface net heat fluxes over land, which need to be provided to AQM.
The current formulation also provides improper values on mixed grid points for fractional grids.

A new formulation is proposed in PR #953.

@grantfirl
Copy link
Collaborator

@ChunxiZhang-NOAA @rmontuoro Should we close this (and upstream PRs) in favor of merging #953 (and upstream PRs)?

@ChunxiZhang-NOAA
Copy link
Collaborator Author

@grantfirl We can close this PR.

@grantfirl
Copy link
Collaborator

Closing this PR in favor of continuing discussion of the solution in #953

@grantfirl grantfirl closed this Aug 26, 2022
@ChunxiZhang-NOAA ChunxiZhang-NOAA deleted the bugfix/aqmflux branch September 6, 2022 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants