Closed
Description
Describe the bug
In subroutine BEP1D
(WRF v4.5.1) there is a loop with a too large extent. When compiling the model in debug mode, it crashes with an error message about array over passing.
This is the loop with the issue:
do iz=1,nz_um !Compute the outdoor temperature
tmp_u(iz)=pt_u(iz)*(pr_u(iz)/p0)**(rcp_u)
end do
Solution
The loop should only run up to nzu
.
do iz=1,nzu !Compute the outdoor temperature
tmp_u(iz)=pt_u(iz)*(pr_u(iz)/p0)**(rcp_u)
end do
I already modified the code and worked properly.
Metadata
Metadata
Assignees
Labels
No labels