Skip to content
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

TurbSim bug fix: fix index into Z array for text grid files #1550

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

bjonkman
Copy link
Contributor

Feature or improvement description
When requesting both tower points and text-formatted grid file outputs, an array could exceed the size of the array, causing an access violation.

Related issue, if one exists
This was reported on the NREL Forum: https://forums.nrel.gov/t/difference-between-fast-and-openfast-results/4665/29

Impacted areas of the software
TurbSim, only when both WrADTWR and WrFMTFF are true (and probably only when the number of tower points is more than the number of horizontal grid points).

Test results, if applicable
This doesn't get tested, so will not affect any results. Text-based full-field grid files are rarely used anywhere.

This caused an index to be out of bounds if there were tower points
Copy link
Collaborator

@jjonkman jjonkman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this bug!

@andrew-platt andrew-platt self-assigned this Apr 27, 2023
@andrew-platt andrew-platt added this to the v3.5.0 milestone Apr 27, 2023
@andrew-platt andrew-platt merged commit c050f05 into OpenFAST:dev Apr 27, 2023
@bjonkman bjonkman deleted the b/TurbSim_textGrids branch May 12, 2023 17:31
@andrew-platt andrew-platt mentioned this pull request May 12, 2023
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants