Skip to content

Conversation

@deslaughter
Copy link
Collaborator

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
@andrew-platt andrew-platt mentioned this pull request Dec 24, 2024
38 tasks
@deslaughter deslaughter deleted the b/registry_restore_cobj branch April 17, 2025 21:21
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