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

Fix InflowWind index for invalid channels + typo in HydroDyn echo file #264

Merged
merged 2 commits into from
Mar 22, 2019

Conversation

bjonkman
Copy link
Contributor

THIS PULL REQUEST IS READY TO MERGE

Feature or improvement description

This fixes a small typo in the HydroDyn variable description for SumQTF, and fixes a larger issue where InflowWind could produce a segmentation fault due to an incorrect index if a user requested an invalid output channel.

Impacted areas of the software

  • This will impact InflowWind only when its input file requests output for an invalid channel.
  • This will fix the name of the variable listed in the HydroDyn echo file and in the error message written to the screen if it cannot read the SumQTF line.

Automated test results

This should not affect any of the test results.

If an invalid channel name is selected, InflowWind uses a default index of 0. However, the `m%Allouts` array it was indexing into started with 1 instead of 0.
@jjonkman jjonkman self-requested a review March 21, 2019 18:48
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.

These minor changes look good to me. Thanks!

@rafmudaf rafmudaf self-assigned this Mar 22, 2019
@rafmudaf
Copy link
Collaborator

Thanks @bjonkman

@rafmudaf rafmudaf merged commit 231e529 into OpenFAST:dev Mar 22, 2019
@bjonkman bjonkman deleted the b/BadIndex branch March 22, 2019 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants