Skip to content

Minor fix to avoid zmid=NaN in very thin layers.#1193

Merged
WenMeng-NOAA merged 5 commits into
NOAA-EMC:developfrom
JesseMeng-NOAA:feature/issue1174
Apr 25, 2025
Merged

Minor fix to avoid zmid=NaN in very thin layers.#1193
WenMeng-NOAA merged 5 commits into
NOAA-EMC:developfrom
JesseMeng-NOAA:feature/issue1174

Conversation

@JesseMeng-NOAA
Copy link
Copy Markdown
Contributor

To fix UPP issue 1174 #1174
ufs-weather-model inline post crashed due to zmid=NaN in very thin layers where dpres-->0.

@WenMeng-NOAA WenMeng-NOAA added the bug Something isn't working label Apr 22, 2025
@WenMeng-NOAA WenMeng-NOAA linked an issue Apr 22, 2025 that may be closed by this pull request
@WenMeng-NOAA WenMeng-NOAA added the Ready for Review This PR is ready for code review. label Apr 22, 2025
@WenMeng-NOAA
Copy link
Copy Markdown
Collaborator

@JesseMeng-NOAA Could you add change logs to the two routine files you updated?

@NickSzapiro-NOAA
Copy link
Copy Markdown
Contributor

Thank you for resolving this together! Update to post_fv3.F90 interface maybe in ~10 days

@JesseMeng-NOAA
Copy link
Copy Markdown
Contributor Author

@JesseMeng-NOAA Could you add change logs to the two routine files you updated?

@WenMeng-NOAA Do you mean this?
https://github.com/NOAA-EMC/UPP/pull/1193/files

@WenMeng-NOAA
Copy link
Copy Markdown
Collaborator

@JesseMeng-NOAA Could you add change logs to the two routine files you updated?

@WenMeng-NOAA Do you mean this? https://github.com/NOAA-EMC/UPP/pull/1193/files

@JesseMeng-NOAA Yes, please add a change log with your name at the beginning section of each subroutine.

@WenMeng-NOAA
Copy link
Copy Markdown
Collaborator

@FernandoAndrade-NOAA This PR is ready for the UPP RTs on R&D machines. There should be no baseline changes.

@WenMeng-NOAA
Copy link
Copy Markdown
Collaborator

The UPP RTs have been completed on WCOSS2 without baseline changes.

@FernandoAndrade-NOAA
Copy link
Copy Markdown
Contributor

@FernandoAndrade-NOAA This PR is ready for the UPP RTs on R&D machines. There should be no baseline changes.

FYI Orion/Hercules are down today for maintenance, there will be delays in merging.

Copy link
Copy Markdown
Contributor

@FernandoAndrade-NOAA FernandoAndrade-NOAA left a comment

Choose a reason for hiding this comment

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

RTs completed across Hera, Hercules, and Orion. No changes in results.

@WenMeng-NOAA
Copy link
Copy Markdown
Collaborator

This PR is ready for merging.

@WenMeng-NOAA WenMeng-NOAA merged commit 2975b8a into NOAA-EMC:develop Apr 25, 2025
3 checks passed
WenMeng-NOAA pushed a commit that referenced this pull request May 7, 2025
* 10 initial sanity checks added

* Fix typo in SURFCE.f

* Incorporate fixes to grib2_module.f from PR #974 to UPP develop

* Fixes for cloud ceiling and 2-m potential temperature, and INITPOST changes from #1193

* Remove 2-m potential temperature from RRFS

* Add change log info to updated files in sorc directory

---------

Co-authored-by: benjamin blake <benjamin.blake@clogin07.cactus.wcoss2.ncep.noaa.gov>
Co-authored-by: benjamin blake <benjamin.blake@clogin01.cactus.wcoss2.ncep.noaa.gov>
Co-authored-by: benjamin blake <benjamin.blake@clogin08.cactus.wcoss2.ncep.noaa.gov>
Co-authored-by: benjamin blake <benjamin.blake@clogin02.cactus.wcoss2.ncep.noaa.gov>
Co-authored-by: benjamin blake <benjamin.blake@clogin06.cactus.wcoss2.ncep.noaa.gov>
gspetro-NOAA pushed a commit to jaymes-kenyon/UPP that referenced this pull request May 7, 2025
* 20250422 Jesse Meng minor fix to avoid zmid=NaN in very thin layers.

* Bug fix zmid calculation in very thin layers

* add hera RT log

* add hercules RT log

* add orion RT log

---------

Co-authored-by: shrinivas.moorthi <shrinivas.moorthi@noaa.gov>
Co-authored-by: FernandoAndrade-NOAA <fernando.andrade-maldonado@noaa.gov>
WenMeng-NOAA added a commit that referenced this pull request May 8, 2025
…L diagnostic; other refinements (#1185)

* - Clean-up / remove various outdated GSL diagnostics of cloud top and cloud base
- For MPAS, enable output of maximum upward vertical velocity (MAXUVV)
- For MPAS, change the prefixes on the GRIB2 file names that are initially generated

* Reorganizing control files for MPAS applications

* Updating control files for RAP and HRRR

* Removing parameter 770 (GSD_RADARVIL_ON_ENTIRE_ATMOS) and its supporting code. A functionally identical diagnostic remains available via parameter 581

* Reduce RHmin in upper stratosphere and lower mesosphere to be below stratopause RH (#1186)

* Reduce minimum RH above 3 mbar by a factor of ten.

Old value led to q > 10 ppm near polar stratopause.
This version keeps specific humidity near its values in the rest of the stratosphere.

* DOC: Add changelog entry

They may want an upper bound to the change at some point, but I don't know that we get far enough into the mesosphere for that to be an issue

* BUG: Use floating-point literals to reduce stratopause RHmin

* add hera RT log

* add hercules RT log

* add orion RT log and cmp path fix gfs

* Update intel.yml update ubuntu version 22.04

---------

Co-authored-by: WenMeng-NOAA <48260754+WenMeng-NOAA@users.noreply.github.com>
Co-authored-by: FernandoAndrade-NOAA <fernando.andrade-maldonado@noaa.gov>
Co-authored-by: Fernando Andrade - NOAA <121964418+FernandoAndrade-NOAA@users.noreply.github.com>

* Minor fix to avoid zmid=NaN in very thin layers. (#1193)

* 20250422 Jesse Meng minor fix to avoid zmid=NaN in very thin layers.

* Bug fix zmid calculation in very thin layers

* add hera RT log

* add hercules RT log

* add orion RT log

---------

Co-authored-by: shrinivas.moorthi <shrinivas.moorthi@noaa.gov>
Co-authored-by: FernandoAndrade-NOAA <fernando.andrade-maldonado@noaa.gov>

* Reorganizing control files for MPAS applications

* Updating control files for RAP and HRRR

* Removing parameter 770 (GSD_RADARVIL_ON_ENTIRE_ATMOS) and its supporting code. A functionally identical diagnostic remains available via parameter 581

* hera rt log

* hercules rt log

* orion rt log

* hera rt log after retest

---------

Co-authored-by: WenMeng-NOAA <48260754+WenMeng-NOAA@users.noreply.github.com>
Co-authored-by: DWesl <22566757+DWesl@users.noreply.github.com>
Co-authored-by: FernandoAndrade-NOAA <fernando.andrade-maldonado@noaa.gov>
Co-authored-by: Fernando Andrade - NOAA <121964418+FernandoAndrade-NOAA@users.noreply.github.com>
Co-authored-by: Jesse Meng <49207433+JesseMeng-NOAA@users.noreply.github.com>
Co-authored-by: shrinivas.moorthi <shrinivas.moorthi@noaa.gov>
Co-authored-by: gspetro-NOAA <gillian.petro@noaa.gov>
Co-authored-by: Gillian Petro <96886803+gspetro-NOAA@users.noreply.github.com>
gspetro-NOAA pushed a commit to gspetro-NOAA/UPP that referenced this pull request Jul 28, 2025
* 20250422 Jesse Meng minor fix to avoid zmid=NaN in very thin layers.

* Bug fix zmid calculation in very thin layers

* add hera RT log

* add hercules RT log

* add orion RT log

---------

Co-authored-by: shrinivas.moorthi <shrinivas.moorthi@noaa.gov>
Co-authored-by: FernandoAndrade-NOAA <fernando.andrade-maldonado@noaa.gov>
gspetro-NOAA added a commit to gspetro-NOAA/UPP that referenced this pull request Jul 28, 2025
…L diagnostic; other refinements (NOAA-EMC#1185)

* - Clean-up / remove various outdated GSL diagnostics of cloud top and cloud base
- For MPAS, enable output of maximum upward vertical velocity (MAXUVV)
- For MPAS, change the prefixes on the GRIB2 file names that are initially generated

* Reorganizing control files for MPAS applications

* Updating control files for RAP and HRRR

* Removing parameter 770 (GSD_RADARVIL_ON_ENTIRE_ATMOS) and its supporting code. A functionally identical diagnostic remains available via parameter 581

* Reduce RHmin in upper stratosphere and lower mesosphere to be below stratopause RH (NOAA-EMC#1186)

* Reduce minimum RH above 3 mbar by a factor of ten.

Old value led to q > 10 ppm near polar stratopause.
This version keeps specific humidity near its values in the rest of the stratosphere.

* DOC: Add changelog entry

They may want an upper bound to the change at some point, but I don't know that we get far enough into the mesosphere for that to be an issue

* BUG: Use floating-point literals to reduce stratopause RHmin

* add hera RT log

* add hercules RT log

* add orion RT log and cmp path fix gfs

* Update intel.yml update ubuntu version 22.04

---------

Co-authored-by: WenMeng-NOAA <48260754+WenMeng-NOAA@users.noreply.github.com>
Co-authored-by: FernandoAndrade-NOAA <fernando.andrade-maldonado@noaa.gov>
Co-authored-by: Fernando Andrade - NOAA <121964418+FernandoAndrade-NOAA@users.noreply.github.com>

* Minor fix to avoid zmid=NaN in very thin layers. (NOAA-EMC#1193)

* 20250422 Jesse Meng minor fix to avoid zmid=NaN in very thin layers.

* Bug fix zmid calculation in very thin layers

* add hera RT log

* add hercules RT log

* add orion RT log

---------

Co-authored-by: shrinivas.moorthi <shrinivas.moorthi@noaa.gov>
Co-authored-by: FernandoAndrade-NOAA <fernando.andrade-maldonado@noaa.gov>

* Reorganizing control files for MPAS applications

* Updating control files for RAP and HRRR

* Removing parameter 770 (GSD_RADARVIL_ON_ENTIRE_ATMOS) and its supporting code. A functionally identical diagnostic remains available via parameter 581

* hera rt log

* hercules rt log

* orion rt log

* hera rt log after retest

---------

Co-authored-by: WenMeng-NOAA <48260754+WenMeng-NOAA@users.noreply.github.com>
Co-authored-by: DWesl <22566757+DWesl@users.noreply.github.com>
Co-authored-by: FernandoAndrade-NOAA <fernando.andrade-maldonado@noaa.gov>
Co-authored-by: Fernando Andrade - NOAA <121964418+FernandoAndrade-NOAA@users.noreply.github.com>
Co-authored-by: Jesse Meng <49207433+JesseMeng-NOAA@users.noreply.github.com>
Co-authored-by: shrinivas.moorthi <shrinivas.moorthi@noaa.gov>
Co-authored-by: gspetro-NOAA <gillian.petro@noaa.gov>
Co-authored-by: Gillian Petro <96886803+gspetro-NOAA@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Ready for Review This PR is ready for code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Possible segfault in upp/sorc/ncep_post.fd/UPP_PHYSICS.f

5 participants