Closed SamuelTrahanNOAA closed 2 years ago
I have submitted a PR with a temporary solution to avoid this broken code holding up other development: remove the regression test.
https://github.com/ufs-community/ufs-weather-model/pull/1151
Can this issue be closed?
Description
In module_mp_thompson.F90, the min_rand variable is used but never uninitialized. If you initialize min_rand=0, the scheme passes that point, but fails later due to a temperature of 4.821964740593585E+036. That likely indicates uninitialized memory or out-of-bounds array access elsewhere.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
You can see this plainly in the source code, but if you want the Intel compiler to tell you, do this.
RUN | regional_spp_sppt_shum_skeb | | fv3 |
35: forrtl: error (182): floating invalid - possible uninitialized real/complex variable. 35: Image PC Routine Line Source
35: fv3.exe 000000000AE8A8EE Unknown Unknown Unknown 35: libpthread-2.17.s 00002B05702DE630 Unknown Unknown Unknown 35: fv3.exe 0000000009416FD7 module_mp_thompso 1295 module_mp_thompson.F90 35: fv3.exe 0000000009754A84 mp_thompson_mp_mp 635 mp_thompson.F90 35: fv3.exe 00000000071CA248 ccpp_fv3_hrrr_phy 12648 ccpp_FV3_HRRR_physics_cap.F90 35: fv3.exe 0000000006B44C37 ccpp_static_api_m 662 ccpp_static_api.F90 35: fv3.exe 0000000006B37E60 ccpp_driver_mp_cc 188 CCPP_driver.F90 35: libiomp5.so 00002B056E9EEA43 kmp_invoke_micr Unknown Unknown 35: libiomp5.so 00002B056E9B1CDA Unknown Unknown Unknown 35: libiomp5.so 00002B056E9B35B6 kmp_fork_call Unknown Unknown