Skip to content

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

Merged
andrew-platt merged 2 commits intoOpenFAST:devfrom
luwang00:f/MD_Flexible_WaveKin_File
Sep 30, 2024
Merged

MD: Automatically detect the number of header lines in the WaveKin (wave elevation) file#2436
andrew-platt merged 2 commits intoOpenFAST:devfrom
luwang00:f/MD_Flexible_WaveKin_File

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
@andrew-platt andrew-platt mentioned this pull request Dec 24, 2024
38 tasks
@luwang00 luwang00 deleted the f/MD_Flexible_WaveKin_File branch December 24, 2024 22:56
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

Comments