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] unallocated AD%y%Rotors when AD14 is used with cpp interface #703

Merged
merged 2 commits into from
Apr 13, 2021

Conversation

andrew-platt
Copy link
Collaborator

When using the cpp interface with AD14, the FillOutputAry_T routine tried to pass Turbine(iTurb)%AD%y%Rotors(1) to FillOutputAry, but the AD%y%Rotors was not allocated. This bug was introduced with PR #672.

The logic within FillOutputAry and the variables passed into it have been modified somewhat similarly to how BeamDyn and IceDyn outputs are handled.

NOTE: this set of routines is only called from the FAST_Library, so this issue would only appear with the cpp interface when AD14 is used (I only know of one Simulink example case that this would affect)

This PR is ready to merge

The example Simulink case Run_Test01_SIG.m used AD14 with Simulink. A segmentation fault occurred with this example case (this case is not included in the regression tests).

Close #692

The FillOutputAry_T routine tried to pass Turbine(iTurb)%AD%y%Rotors(1) to FillOutputAry, but the AD%y%Rotors was not allocated for cases where AD15 was not used.  The logic within FillOutputAry and the variables passed into it have been modified accordingly.

NOTE: this set of routines is only called from the FAST_Library, so this issue would only appear with the cpp interface when AD14 is used (I only know of one Simulink example case that this would affect)
Copy link
Contributor

@ebranlard ebranlard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for finding this!

@rafmudaf rafmudaf merged commit 0fede11 into OpenFAST:dev Apr 13, 2021
@andrew-platt andrew-platt deleted the b/AD_MultiRotor_cpp_crash branch April 15, 2021 17:19
@rafmudaf rafmudaf mentioned this pull request May 12, 2021
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