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

[BugFix] Fix C++ API for restart, Error handling in FAST Library, and AeroDyn echo file lock #716

Merged
merged 15 commits into from
Aug 5, 2021

Conversation

bjonkman
Copy link
Contributor

@bjonkman bjonkman commented Apr 12, 2021

Feature or improvement description
This PR fixes a few minor bugs:

  • It would be theoretically possible to get wrong error messages or possibly a seg fault (depending on error number) when unable to allocate an array for AD initialization. Likely VERY rare.
  • It fixes a problem with calculating sizes of arrays when using the C++ interface (FAST_Library.f90) for restart.
  • It fixes an issue that could cause the AeroDyn echo file to be locked for writing when re-running a simulation in Simulink.
  • It fixes a typo in the AeroDyn summary file (AIDrag was listed twice and TIDrag was omitted).
  • It extends the error handling fix in InflowWind: Return if fatal error occurs in FFWind_Base::GetInterpValues #769 to tower points.

Related issue, if one exists
The size of the restart arrays is similar to the fix in #702
The AD echo file lock was reported in #695

Impacted areas of the software

  • C++ API restart capability
  • AeroDyn

Test results, if applicable
This will not change any existing tests because restart and the Simulink interface are not currently tested here.

@rafmudaf rafmudaf changed the title Minor bug fixes [BugFix] Error handling in C++ API and FAST Library Apr 12, 2021
Related to comment at the end of OpenFAST#695
AD was overwriting the echo file unit number when opening the blade properties files, which caused the echo file not to be closed when exiting the routine.
@bjonkman bjonkman changed the title [BugFix] Error handling in C++ API and FAST Library [BugFix] Fix C++ API for restart, Error handling in FAST Library, and AeroDyn echo file lock Apr 26, 2021
@rafmudaf rafmudaf merged commit fa26196 into OpenFAST:dev Aug 5, 2021
@bjonkman bjonkman deleted the b/MinorBugs branch August 5, 2021 17:11
@rafmudaf rafmudaf mentioned this pull request Mar 2, 2022
11 tasks
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.

4 participants