-
Notifications
You must be signed in to change notification settings - Fork 153
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
Conversation
…for-bit identical decomp results with GF
@@ -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! |
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.
Since this code is obviously used, should we remove the comment?
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.
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 |
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.
Should we remove this entire function deriv3
, since it isn't used?
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 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?
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.
@hannahcbarnes @climbfuji We don't have plan to use it in the future. It should be ok to remove this function.
Replaced by #942 |
Bug fixes in
physics/cu_gf_deep.F90
andphysics/cu_gf_driver.F90
for bit-for-bit identical results with GF when changing the MPI decomposition. Instead of using thepefc
value of last column (pefc
was a scalar), which is incorrect, turnpefc
into a vector of lengthhorizontal_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