You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
In the ufs-weather-model tests/ directory, make a conf file with this:
if (rand_perturb_on .ne. 0) then
if (MOD(rand_perturb_on,2) .ne. 0) rand1 = rand_pert(i,1)
m = RSHIFT(ABS(rand_perturb_on),1)
if (MOD(m,2) .ne. 0) rand2 = rand_pert(i,1)*2.
m = RSHIFT(ABS(rand_perturb_on),2)
==> if (MOD(m,2) .ne. 0) rand3 = 0.25*(rand_pert(i,1)+ABS(min_rand)) <==
m = RSHIFT(ABS(rand_perturb_on),3)
endif
The text was updated successfully, but these errors were encountered:
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.
Output
If you run the regression test as described above, you'll see this:
The error is here:
The text was updated successfully, but these errors were encountered: