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

Fix RAP (Grell Freitas) decomp b4b issues #933

Closed
wants to merge 1 commit into from

Conversation

climbfuji
Copy link
Collaborator

@climbfuji climbfuji commented Jun 5, 2022

Bug fixes in physics/cu_gf_deep.F90 and physics/cu_gf_driver.F90 for bit-for-bit identical results with GF when changing the MPI decomposition. Instead of using the pefc value of last column (pefc was a scalar), which is incorrect, turn pefc into a vector of length horizontal_loop_extent and use the correct value in GF deep convection.

Minor formatting cleanup in removal of unused symbols/code.

Associated PRs:

NOAA-EMC/fv3atm#543
ufs-community/ufs-weather-model#1243

For regression testing, see ufs-community/ufs-weather-model#1243

@climbfuji climbfuji changed the title DRAFT - WORKING ON RAP (Grell Freitas) decomp b4b issues RAP (Grell Freitas) decomp b4b issues solved Jun 6, 2022
@climbfuji climbfuji changed the title RAP (Grell Freitas) decomp b4b issues solved Fix RAP (Grell Freitas) decomp b4b issues Jun 6, 2022
@climbfuji climbfuji marked this pull request as ready for review June 6, 2022 02:22
@@ -27,7 +27,7 @@ module cu_gf_deep
!> flag to turn off or modify mom transport by downdrafts
real(kind=kind_phys), parameter :: pgcd = 0.1
!
!> aerosol awareness, do not user yet!
!> aerosol awareness, do not use yet!
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Since this code is obviously used, should we remove the comment?

Copy link
Collaborator

Choose a reason for hiding this comment

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

That works for me. It has a small impact right now.

deriv3 = deriv3 + 2.0*f(3)/((x(3)-x(1))*(x(3)-x(2)))
end if
end function deriv3
! DH* 20220604 - this isn't used at all
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should we remove this entire function deriv3, since it isn't used?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is ok. @haiqinli do you agree? Is there any reason why we need to keep deriv3 in the code? Is there a direct way we plan of using in the future?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@hannahcbarnes @climbfuji We don't have plan to use it in the future. It should be ok to remove this function.

@climbfuji
Copy link
Collaborator Author

Replaced by #942

@climbfuji climbfuji closed this Jun 13, 2022
@climbfuji climbfuji deleted the bugfix/gf_decomp_b4b branch June 27, 2022 02:49
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