Added max/min, detailed lat/lon print out for surface pressure tendency - #271
Draft
mdtoyNOAA wants to merge 1 commit into
Draft
Added max/min, detailed lat/lon print out for surface pressure tendency#271mdtoyNOAA wants to merge 1 commit into
mdtoyNOAA wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR extends the existing timestep summary printouts in the core atmosphere to also report global min/max values for surface-pressure tendency (tend_sfc_pressure), optionally including the lat/lon locations of those extrema, controlled via two new namelist options.
Changes:
- Added two new namelist logicals to enable global and detailed (with location) min/max printouts for surface-pressure tendency.
- Updated
summarize_timestepto retrievetend_sfc_pressurefrom thetendpool and print min/max (and lat/lon when requested).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/core_atmosphere/Registry.xml |
Adds two new namelist options to control surface-pressure tendency min/max reporting. |
src/core_atmosphere/dynamics/mpas_atm_time_integration.F |
Implements global and detailed min/max logging for tend_sfc_pressure in summarize_timestep. |
Suppressed comments (4)
src/core_atmosphere/dynamics/mpas_atm_time_integration.F:9156
- OpenACC
collapse(2)is applied to a singledo iCellloop (no nested loops) when reducingoffset_1d. This can fail to compile; remove thecollapse(2)clause.
!$acc parallel default(present)
!$acc loop collapse(2) gang vector reduction(min:offset_1d)
do iCell = 1, nCellsSolve
src/core_atmosphere/dynamics/mpas_atm_time_integration.F:9194
- OpenACC
collapse(2)is applied to a singledo iCellloop for the max reduction. This should be a 1-D loop, so droppingcollapse(2)avoids compilation errors.
!$acc parallel default(present)
!$acc loop collapse(2) gang vector reduction(max:scalar_max)
do iCell = 1, nCellsSolve
src/core_atmosphere/dynamics/mpas_atm_time_integration.F:9201
- OpenACC
collapse(2)is used on a non-nested loop in theoffset_1dreduction for the max-location search. Removecollapse(2)to keep the directive valid for a single loop.
!$acc parallel default(present)
!$acc loop collapse(2) gang vector reduction(min:offset_1d)
do iCell = 1, nCellsSolve
src/core_atmosphere/dynamics/mpas_atm_time_integration.F:9240
collapse(2)is specified on an OpenACC loop that has only a singledo iCellloop. This can break OpenACC builds; remove thecollapse(2)clause.
!$acc parallel default(present)
!$acc loop gang vector collapse(2) reduction(min:scalar_min) reduction(max:scalar_max)
do iCell = 1, nCellsSolve
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+9145
to
+9147
| !$acc parallel default(present) | ||
| !$acc loop collapse(2) gang vector reduction(min:scalar_min) | ||
| do iCell = 1, nCellsSolve |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Added capability to print out min/max values of the surface pressure tendency along with the lat/lon positions where these occur. This adds to the existing feature for printing min/max values for 'u', 'w' and 'wspd'.
This capability is activated with 2 new namelist logicals: