-
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
Radiation Improvements for prototype 8 #871
Merged
grantfirl
merged 41 commits into
NCAR:main
from
dustinswales:enhanced_GP2cld_coupling_tight
Apr 8, 2022
Merged
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
68f97b1
Potential bug fix for RRTMGP GP flux coupling.
dustinswales 0ea0fd0
Code update for radiation_clouds.f and GFS_rrtmg_pre.F90 GFS_cloud_di…
Qingfu-Liu 242dcc9
updated the radiation code based on review's suggestions
Qingfu-Liu c6faeb1
updated radiation_cloud_overlap.F90 based on Mike's comment
Qingfu-Liu 6e6acb9
Initial commit
dustinswales f46396f
Add explict treatment of convective cloud to RRTMGP.
dustinswales dcbad0a
Some cleanup and bug fixes from previous commit. working now with Tho…
dustinswales 7fee2d6
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into gpsw…
dustinswales 45f3e83
Merge branch 'feature/codeupdate2' of https://github.com/Qingfu-Liu/c…
dustinswales 5830a82
RRTMGP coupling to Thompson MP (Sundqvist 1989)
dustinswales bcbea32
Housekeeping
dustinswales dec5bbd
Initial implementation of explicit coupling of convective (GF/SAMF) a…
dustinswales 63fb052
Added new cloud-optics for MYNN-EDMF clouds
dustinswales fb7003b
Added MYNN-EDMF optical properties to RRTMGP RTE
dustinswales 6327749
Removed RRTMG cloud-optics option in RRTMGP.
dustinswales 4a4d159
Bug fix
dustinswales be960f0
Added switches for sgs clouds in GP.
dustinswales ac173e2
Replaced cld_mynn_ naming convention with cld_pbl_
dustinswales 475b1be
Fixed inconsistency between G/GP in Thompson MP.
dustinswales 182b2c6
Housekeeping, combine loops.
dustinswales 646c65b
Some more cleanup of cloud-fraction...
dustinswales 3206fa9
Changes from code review.
dustinswales ba5b1f8
Bug from previous commit
dustinswales 71ab24d
resolve the code conflicts
Qingfu-Liu 8e21c40
Merge branch 'feature/codeupdate2' of https://github.com/Qingfu-Liu/c…
dustinswales d89d738
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into enha…
dustinswales d3ff8f6
SPP bugfix from Jeff Beck
grantfirl defde63
Merge pull request #17 from grantfirl/enhanced_GP2cld_coupling_tight_gjf
dustinswales a6e960d
Revert change from previous commits (sampling of different cloud types).
dustinswales f2d46db
Changed arguments to implied shape.
dustinswales 152048e
Merge branch 'gpswflx_issue' into enhanced_GP2cld_coupling_tight
dustinswales ec19fbe
Pulled in SW coupling fix for RRTMGP. Share SW_rad_pre between RRTMG …
dustinswales acc802a
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into enha…
dustinswales 8e6580e
Syntax error
dustinswales 4d9e2b3
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into enha…
dustinswales 2617af6
Cleanup suggestions from PR.
dustinswales 0148905
Revert "Cleanup suggestions from PR."
dustinswales 2cf6a38
Cleanup
dustinswales 4407989
Added bounding to temperature at layer-interface used by RRTMGP.
dustinswales d0a2dd8
Reorder loop
dustinswales 77aa061
Combined gp sw and lw aerosol routines. Modest speedup (~4%)
dustinswales File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
FORTRAN arrays are stored in column-major order. So it should be:
do iLev=1,nlev+1
do iCol=1,nCol
....
end do
end do
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 just found out that you need to change many loop orders in the code. I believe the wrong orders can increase the computational costs.
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.
As Dom mentioned, the optimization is probably catching these.
Additionally, the profiling of the code does not point to these _pre routines, they take a trivial amount of time.
The major contributors to GP's timing are from rrtmgp_lw(sw)_gas_optics and rrtmgp_lw(sw)_rte, ~60% of GP's total runtime
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 don't recall the configuration, it's been a long time, but here is where the time is being spent in the GP suite:

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.
If a compiler can optimize it, it is ok.
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.
@dustinswales Thanks for sharing the statistics.