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

MD: Automatically detect the number of header lines in the WaveKin (wave elevation) file #2436

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

luwang00
Copy link
Contributor

This pull request is ready to be merged.

Feature or improvement description
Previously, MoorDyn always assumes the wave-elevation input file to contain 2 lines of header. It can result in a segmentation fault if the file contains an incorrect number of header lines. This also prevents MoorDyn from directly using the SeaState wave-elevation output file as input, a common use case. This PR allows MoorDyn to automatically detect and skip header lines in the wave-elevation input file for added flexibility.

Impacted areas of the software
MoorDyn

Test results, if applicable
No change to test results. All tests passed.

@andrew-platt andrew-platt self-assigned this Sep 30, 2024
@andrew-platt andrew-platt added this to the v4.0.0 milestone Sep 30, 2024
@andrew-platt andrew-platt merged commit 56c645d into OpenFAST:dev Sep 30, 2024
21 checks passed
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