-
Notifications
You must be signed in to change notification settings - Fork 640
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
Incorrect adjoint gradients with overlapping design variables #1984
Comments
IIRC, the error is a constant error, right? meaning we are just off by a scale factor (i.e. it's not as if the entire gradient is just wrong)? If that's the case, it should be easy to debug. Perhaps we are double-counting the number of grids somewhere... |
Yes, I think the gradients are off by a scale factor, but that scale varies a bit with different random structures. |
I'm pretty sure the issue is due to the following snippet introduced in #1780. Lines 2758 to 2771 in 11545a1
|
When the material grids of design variables are overlapped, e.g. the eigenmode tutorial example, the adjoint gradients don't agree with the finite difference gradients.
In the aforementioned example, the gradients are correct if only one block of the design region is kept in the
geometry
but not both:The text was updated successfully, but these errors were encountered: