Skip to content

minor bug in urban module phys/module_sf_bep_bem.F #2194

Closed
@LluisFB

Description

@LluisFB

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions