Added max/min, detailed lat/lon print out for surface pressure tendency - #271
Open
mdtoyNOAA wants to merge 2 commits into
Open
Added max/min, detailed lat/lon print out for surface pressure tendency#271mdtoyNOAA wants to merge 2 commits into
mdtoyNOAA wants to merge 2 commits 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.
clark-evans
approved these changes
Aug 20, 2026
XiaSun-Atmos
approved these changes
Sep 2, 2026
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:
Here is a sample of the min/max 'tend_sfc_pressure' output produced from a model run:
global min w: -2.98311 k=28, 43.6261 lat, -112.960 lon
global max w: 5.37123 k=25, 43.6465 lat, -112.975 lon
global min u: -11.2537 k=100, 43.6008 lat, -113.039 lon
global max u: 11.2544 k=100, 43.6003 lat, -113.040 lon
global max wsp: 11.3020 k=100, 43.6533 lat, -112.997 lon
global min tend_sfc_pressure: -0.140625 43.6096 lat, -112.961 lon
global max tend_sfc_pressure: 0.140625 43.5942 lat, -113.032 lon
Timing for integration step: 0.576008E-01 s