-
Notifications
You must be signed in to change notification settings - Fork 11
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 auto-diff for cosminus1 in gust loading #158
Conversation
@@ -49,7 +51,7 @@ class GustL(SparLoading): | |||
new_SbarFun = None | |||
|
|||
return_cosm1 = lambda self, c: hstack( | |||
[1e-10, 1-cos(c[self.wing.planform.eta][1:]*pi/2)]) | |||
[adnumber(1e-10), 1-array(cos(c[self.wing.planform.eta][1:]*pi/2))]) |
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.
the array is necessary because admath.cos returns a list, unfortunately.
Note that if you wrapped the whole thing in adnumber you'd wipe out all derivative information!
test this please |
test models please |
this is a question for @bqpd... |
Seems to only fail on reynolds and windows... |
test models please |
looks like the mysterious csv errors disappeared |
@mjburton11