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

Fix seg-fault for DBEMT_Mod=-1 #2429

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

andrew-platt
Copy link
Collaborator

Ready to merge

Feature or improvement description
A segmentation fault would occur if DBEMT_Mod was set to -1. In PR #2427, I incorrectly assumed that DBEMT should be run if DBEMT_Mod=-1. However, with the frozen wake, this should not be done.

There were a few places where if (p%DBEMT_Mod /= DBEMT_none) should have been updated to if (p%DBEMT_Mod > DBEMT_none). This fixes the issues we were seeing.

Also note that this PR reverts commit 7305adb

Related issue, if one exists
#2427, see comment https://github.com/OpenFAST/openfast/pull/2427/files#r1765719295

Impacted areas of the software
AeroDyn with DBEMT_Mod=-1

@andrew-platt andrew-platt self-assigned this Sep 18, 2024
@deslaughter deslaughter self-requested a review September 19, 2024 15:03
@deslaughter deslaughter added this to the v4.0.0 milestone Sep 19, 2024
Copy link
Contributor

@bjonkman bjonkman 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 fixing this, @andrew-platt!

@andrew-platt andrew-platt merged commit e7541ee into OpenFAST:dev Sep 19, 2024
21 checks passed
@andrew-platt andrew-platt deleted the b/DBEMT_Frozen_segfault2 branch November 1, 2024 20:16
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