Describe the bug
-SAM detailed PV model.
-Mike Wagner: I’m trying to run the default case with the only change being selection of the Sandia module performance model, and using the default panel type. When running in debug mode only, the model hangs up. In debugging, I found that this occurs because the module variable ‘groundClearancHeight’ is not set for the Sandia model, and defaults to some NaN that is a very large negative number. The calculation of shading uses a while loop based on this value, and it ends up hanging. The screenshots below give a bit of context.
Screenshots

Operating System and Version
- OS: [Windows, macOS, Linux]
- Version [e.g. SAM 2020.2.29 r3]
Additional context
-Only happening in debug?
Describe the bug
-SAM detailed PV model.
-Mike Wagner: I’m trying to run the default case with the only change being selection of the Sandia module performance model, and using the default panel type. When running in debug mode only, the model hangs up. In debugging, I found that this occurs because the module variable ‘groundClearancHeight’ is not set for the Sandia model, and defaults to some NaN that is a very large negative number. The calculation of shading uses a while loop based on this value, and it ends up hanging. The screenshots below give a bit of context.
Screenshots
Operating System and Version
Additional context
-Only happening in debug?