-
Notifications
You must be signed in to change notification settings - Fork 458
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
DBEMT_Mod = -1 for linearization #2427
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
DBEMT_Init wasn't getting called
@@ -636,7 +636,7 @@ subroutine BEMT_Init( InitInp, u, p, x, xd, z, OtherState, AFInfo, y, misc, Inte | |||
if (errStat >= AbortErrLev) return | |||
|
|||
InitInp_DBEMT%DBEMT_Mod = p%DBEMT_Mod | |||
if ( p%DBEMT_Mod > DBEMT_none ) then | |||
if ( p%DBEMT_Mod > DBEMT_none .or. p%DBEMT_Mod == DBEMT_Frozen ) then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe this should be rewritten as if ( p%DBEMT_Mod /= DBEMT_none) then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually... Are you sure the DBEMT module is supposed to be called with frozen wake? I thought it just called a routine in BEMT instead of the DBEMT module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking the places where we check p%DBEMT_Mod /= DBEMT_none
should be changed to p%DBEMT_Mod > DBEMT_none
to avoid the seg fault you were seeing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems we need DBEMT_Init
to get called, otherwise we get a seg fault. But perhaps I addressed the wrong issue with that change. I'll revisit this again shortly (probably another PR).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ready to merge
Feature or improvement description
Aero linearization should be possible with
DBEMT_Mod
set to-1
(frozen wake)Related issue, if one exists
The
FrozenWake
flag was merged into theDBEMT_Mod
options in PR #1909Impacted areas of the software
Linearization with frozen wake was not possible