-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid AFN fan array bounds error #10636
Conversation
@mjwitte The above check-in is for testing only to see any possible differences after a function is removed. |
@Myoldmopar Sorry, I may not explain my actions clearly to cause your confusion. This PR is to avoid array bounds error. When @mjwitte posted this issue, he found AirLoopNum is not assigned correctly in the assign_fan_airloop function. Then I check the function and found that the logic in the function is not correct for multiple AirLoops. Fortunately, get_airloop_number function covers the same functionality, so that assign_fan_airloop function is not needed. That is why I removed the function to see if there are any differences in CI testing. The results show no differences, so that the function removal is correct. Although I assume array bounds errors are removed. Hope @mjwitte can test it. The error file also shows a fatal error because AFN model is unable to find a solution. Further investigation may be needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All green, no diffs. Merging. |
Pull request overview
The logic of assign_fan_airloop function is not correct. After further testing, the function is not necessary. The get_airloop_number function covers the same functionality of assign_fan_airloop. Therefore, the assign_fan_airloop function is removed to avoid possible array bounds error. No differences are found in local testing.
Pull Request Author
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Reviewer
This will not be exhaustively relevant to every PR.