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

AD bugfix: Segmentation fault with ifx #2516

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

andrew-platt
Copy link
Collaborator

Ready to merge, unless someone has a more elegant solution

Feature or improvement description
When OLAF was used with the AeroDyn Driver compiled with ifx (IFX) 2023.2.0 20230622 (release only), there would be a segmentation fault when SetInputsForFVW was called. The root issue was that passing an array of u as (/u/) doesn't work correctly with this compiler. So to work around this, the SetInputsForFVW routine was reworked to only operate on a single u.

In my opinion this is a hack of a solution to accomodate a compiler bug.

Related issue, if one exists
none

Impacted areas of the software
AeroDyn driver, only when compiled with ifx

Additional supporting information

Test results, if applicable
This would trigger a segmentation fault in the ad_HelicalWakeInf_OLAF in 3.5.5 with ifx (IFX) 2023.2.0 20230622 in release.

When OLAF was used with the AeroDyn Driver compiled with ifx (IFX) 2023.2.0 20230622 (release only), there would be a segmentation fault when SetInputsForFVW was called.  The root issue was that passing an array of `u` as `(/u/)` doesn't work correctly with this compiler.  So to work around this, the SetInputsForFVW routine was reworked to only operate on a single `u`.

In my opinion this is a hack of a solution to accomodate a compiler bug.
@deslaughter
Copy link
Collaborator

deslaughter commented Nov 15, 2024 via email

@andrew-platt
Copy link
Collaborator Author

That's probably the issue: something in u couldn't be copied directly.

@andrew-platt andrew-platt merged commit fde83ba into OpenFAST:rc-3.5.5 Nov 15, 2024
38 checks passed
@andrew-platt andrew-platt deleted the b/AD_dvr_segFault branch November 21, 2024 22:12
@andrew-platt andrew-platt mentioned this pull request Dec 19, 2024
28 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.

2 participants