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

[BugFix] segmentation fault in HD linearization #838

Merged
merged 1 commit into from
Sep 23, 2021

Conversation

andrew-platt
Copy link
Collaborator

This PR is ready for merging.

Feature or improvement description
There was a logic error in creating the state names for linearization that caused an allocated array to be accessed. This only occurred during linearization when ExctnMod==2 and RdtnMod==0

Related issue, if one exists
This fixes and closes #812.

Impacted areas of the software
HydroDyn linearization only.

Test results, if applicable
No tests currently use this combination of options during linearization of HD. No existing test results are affected.

Error in logic for creating the state names for linearization.
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.

Looks good to me; thanks for fixing this!

@andrew-platt
Copy link
Collaborator Author

Ideally we would also add a unit test for this. However, without any unit testing currently in HD and large structural changes coming with the revision of the Waves module, now isn't a great time to do so.

@andrew-platt andrew-platt merged commit fa6d92a into OpenFAST:dev Sep 23, 2021
@andrew-platt andrew-platt deleted the b/HDlin_RdtnSegFault branch September 23, 2021 20:11
@rafmudaf rafmudaf mentioned this pull request Mar 2, 2022
11 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.

2 participants