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

Adding safety on number of lines and number of fields per line when WaveMode=6 (Should Fix #118) #239

Merged
merged 1 commit into from
Mar 27, 2019

Conversation

ebranlard
Copy link
Contributor

@ebranlard ebranlard commented Feb 7, 2019

THIS PULL REQUEST IS READY TO MERGE

Feature or improvement description

Input files are now checked for sufficient number of lines, and each line is checked to see if enough columns are provided. Explicit error messages with recommendations are provided.
The format is still rather flexible. One line of comment is required at the beginning of the file.
The file should then contain n x m values space, or comma separated, with n>=WaveTMax/WaveDt and m>=NNodes (the number of internal HydroDyn Nodes. If we want strict equality, it's a bit more work.

Related issue, if one exists

See #118

Impacted areas of the software

HydroDyn with WaveMod=6

Automated test results

None, but the safety checks can be tried by removing some data in the input file (either a line or a single field), and HydroDyn should now mention where the data is missing in the file.

@rafmudaf
Copy link
Collaborator

@ghaymanNREL I've looked over this pull request and it looks fine to me. Could you give it a second review?

@rafmudaf rafmudaf merged commit 7f35719 into OpenFAST:dev Mar 27, 2019
@ebranlard ebranlard deleted the feature/issue118 branch March 27, 2019 21:50
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