Skip to content

B/hd cbind segfault ss out switch2#2894

Merged
andrew-platt merged 2 commits intoOpenFAST:rc-4.1.1from
andrew-platt:b/HD_cbind_segfault_SS_OutSwitch2
Jul 8, 2025
Merged

B/hd cbind segfault ss out switch2#2894
andrew-platt merged 2 commits intoOpenFAST:rc-4.1.1from
andrew-platt:b/HD_cbind_segfault_SS_OutSwitch2

Conversation

@andrew-platt
Copy link
Collaborator

@andrew-platt andrew-platt commented Jun 30, 2025

Ready to merge

Feature or improvement description
The HydroDyn_c_binding library interface would segfault if no outputs were set from HydroDyn or SeaState. This PR corrects this issue.

Also included is a modification to the driver_utilities.py in r-test to check the current build directory (might not be called build) or the install/lib for the compiled library.

Related issue, if one exists
None

Impacted areas of the software

  • Test cases with c-binding interfaces
  • HydroDyn c-binding library usage

Test results, if applicable
No test cases change

  • Update r-test at same time as merging this PR (branch py_hd_5MW_OC4Semi_WSt_WavesWN)

@andrew-platt andrew-platt added this to the v4.1.1 milestone Jun 30, 2025
@andrew-platt andrew-platt requested a review from deslaughter June 30, 2025 20:26
@andrew-platt andrew-platt self-assigned this Jun 30, 2025
@andrew-platt andrew-platt changed the base branch from main to rc-4.1.1 June 30, 2025 20:27
@andrew-platt andrew-platt merged commit 2c6c64b into OpenFAST:rc-4.1.1 Jul 8, 2025
47 of 49 checks passed
@andrew-platt andrew-platt mentioned this pull request Jul 8, 2025
37 tasks
@andrew-platt andrew-platt deleted the b/HD_cbind_segfault_SS_OutSwitch2 branch July 8, 2025 23: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.

2 participants