-
Notifications
You must be signed in to change notification settings - Fork 55
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
Formatting and linting fixes #77
Conversation
@@ -3571,8 +3571,8 @@ def _spanwiselocalDVJacobian(self, config=None): | |||
|
|||
# TODO: the += here is to allow recursion check this with multiple nesting | |||
# levels | |||
self.children[iChild].dXrefdXdvl[:, iDVLocal] += dXrefdXdvl | |||
self.children[iChild].dCcdXdvl[:, iDVLocal] += dCcdXdvl | |||
self.children[iChild].dXrefdXdvl[:, iDVSpanwiseLocal] += dXrefdXdvl |
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.
@joanibal can you confirm that this change is correct? iDVLocal
was not defined in this function.
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.
Looks right, this part was copied from the local DV equivalent, but Josh will know better.
We really need a separate batch of tests that verify the correct implementation of all the vars in the child FFDs
One thing I'd also like to do is rename |
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.
Very good work!! Some of the things you spotted and fixed reinforce my feeling that there is much more to be addressed with some proper refactoring... but this is great for now
@@ -3571,8 +3571,8 @@ def _spanwiselocalDVJacobian(self, config=None): | |||
|
|||
# TODO: the += here is to allow recursion check this with multiple nesting | |||
# levels | |||
self.children[iChild].dXrefdXdvl[:, iDVLocal] += dXrefdXdvl | |||
self.children[iChild].dCcdXdvl[:, iDVLocal] += dCcdXdvl | |||
self.children[iChild].dXrefdXdvl[:, iDVSpanwiseLocal] += dXrefdXdvl |
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.
Looks right, this part was copied from the local DV equivalent, but Josh will know better.
We really need a separate batch of tests that verify the correct implementation of all the vars in the child FFDs
Hmm test |
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.
@nwu63 that error seems too big (bigger than it had been when the VSP merge was done recently). Does the problem seem to resolve if the ptvecA thing you took out is restored?
It's fair to say there is no upper bound on the possible error due to the known VSP bug when doing parallel finite difference but again, 1e-2 seems way too large.
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.
See my comments about the VSP stuff. I didn't read the entire commit (it is huge) but if you followed the described method and all the tests pass, then I am OK with it. It must have been quite a lot of hand-work - thank you for taking care of this.
If you skip the first big commit that did the formatting, the rest of the commits are relatively easy to follow. If you don't have time for that I also left a bunch of comments highlighting the changes that I think warrant some sort of review, so if you could just take a quick look at those comments that would be great @bbrelje. |
I reviewed the changes a bit and things look good. Here are my comments:
Besides these items, the PR is good to go for me. I will approve once all changes are done. |
|
Purpose
Closes #54, I used
black
to format the repo and then fixed all linting errors. Please check the commits carefully, I will also leave comments on specific changes I made to highlight those that I wanted someone to double check.Type of change
What types of change is it?
Select the appropriate type(s) that describe this PR
Testing
No new tests, all existing tests pass.
Checklist
Put an
x
in the boxes that apply.flake8
andblack
to make sure the code adheres to PEP-8 and is consistently formatted