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 for OpenFAST Registry incorrectly restoring pointers in modules with CObjs (ExtLd) #2365

Merged
merged 14 commits into from
Aug 12, 2024

Conversation

deslaughter
Copy link
Contributor

This PR is ready to be merged.

Feature or improvement description

This PR fixes a bug introduced in the new OpenFAST registry where the array pointers in modules which interopt with C code were not restored correctly after a restart. This bug was triggered when doing a restart in the C++ driver which simulates the AMR-Wind interface. Many thanks to @gantech for tracking down the exact issue (array indexing was off by 1), testing the fix, and creating a regression test.

This also uncovered a bug in setting the ExtLd wind velocity in FAST_Solver which is resolved in this PR as well.

A bug was corrected in CTestList.cmake where C++ tests were added even when only building the API, not the driver. The BUILD_OPENFAST_CPP_DRIVER has been added around these tests so they will only be added when building the driver.

A reference output file was added for the 5MW_Land_DLL_WTurb_cpp regression test which was previously being run, but output wasn't being checked for correctness.

Impacted areas of the software

  • OpenFAST Registry
  • C++ API Regression Test (5MW_Restart_cpp)
  • CTestList.cmake

Additional supporting information

Test results, if applicable
Added 5MW_Restart_cpp regression test to check that restarts with C++ continue to work. No change in existing test results.

@andrew-platt andrew-platt merged commit 0c50beb into OpenFAST:dev Aug 12, 2024
42 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