Skip to content

Fix seg-fault for DBEMT_Mod=-1#2429

Merged
andrew-platt merged 2 commits intoOpenFAST:devfrom
andrew-platt:b/DBEMT_Frozen_segfault2
Sep 19, 2024
Merged

Fix seg-fault for DBEMT_Mod=-1#2429
andrew-platt merged 2 commits intoOpenFAST:devfrom
andrew-platt:b/DBEMT_Frozen_segfault2

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
@andrew-platt andrew-platt deleted the b/DBEMT_Frozen_segfault2 branch November 1, 2024 20:16
@andrew-platt andrew-platt mentioned this pull request Dec 24, 2024
38 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.

3 participants

Comments