Skip to content

Avoid underflow at initialization#385

Open
dustinswales wants to merge 3 commits intoearth-system-radiation:mainfrom
NCAR:release/ufs_hafv2.2
Open

Avoid underflow at initialization#385
dustinswales wants to merge 3 commits intoearth-system-radiation:mainfrom
NCAR:release/ufs_hafv2.2

Conversation

@dustinswales
Copy link
Contributor

@dustinswales dustinswales commented Feb 6, 2026

The CCPP recently updated tom using rte-rrtmgp v1.8 and we encounter the following compilation warning in the UFS Weather Model:

RRTMGP/rte-rrtmgp/rte-frontend/mo_rte_lw.F90(137): warning #7920: The value was too small when converting to REAL(KIND=4); the result is in the denormalized range.
gauss_Ds = 1._wp / &

This PR breaks the declaration into two steps to avoid dividing by a really huuge number.

More discussion can be found here.

@RobertPincus For some reason I can't edit the PR title, nor did I create this title. ?!?

@dustinswales dustinswales reopened this Feb 6, 2026
@RobertPincus RobertPincus changed the title Fix Avoid underflow at initialization Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant