Skip to content

Fix bug in ExternalInflow Orientation indexing#2628

Merged
andrew-platt merged 2 commits into
OpenFAST:devfrom
deslaughter:b/extinfw-orientation
Feb 10, 2025
Merged

Fix bug in ExternalInflow Orientation indexing#2628
andrew-platt merged 2 commits into
OpenFAST:devfrom
deslaughter:b/extinfw-orientation

Conversation

@deslaughter

Copy link
Copy Markdown
Collaborator

This PR is ready to be merged.

Feature or improvement description

An issue was discovered with the indexing in ExternalInflow which populates the Orientation data that is sent to AMR-Wind. Effectively a +1 was replaced with a _1 and instead of throwing a compilation error, this was interpreted as a type specification. This lead to an off-by-one indexing error in the orientation matrices. This PR fixes this issue and adds a new regression test which exercises the ExternalInflow module.

Impacted areas of the software

ExternalInflow and regression tests.

Test results, if applicable

New test was added and is passing.

@andrew-platt andrew-platt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for adding a test as well!

@andrew-platt andrew-platt merged commit 1045e5d into OpenFAST:dev Feb 10, 2025
@deslaughter deslaughter mentioned this pull request Feb 11, 2025
29 tasks
@deslaughter deslaughter deleted the b/extinfw-orientation branch April 17, 2025 21:21
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