Skip to content
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 adjoint gradient segfault #2066

Merged
merged 1 commit into from
May 12, 2022
Merged

Conversation

smartalecH
Copy link
Collaborator

@smartalecH smartalecH commented May 10, 2022

Fixes #2055.

I ran @mawc2019's test case (here) and @oskooi 's test case (here) and they both seem to pass now.

The issue was a copy/paste bug within a nested for-loop.

@oskooi oskooi self-requested a review May 10, 2022 20:46
@oskooi
Copy link
Collaborator

oskooi commented May 12, 2022

This looks good. I tested it using the 3D example in #2054 (comment) which produced the correct result with no segmentation fault.

@stevengj stevengj merged commit 5275f43 into NanoComp:master May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

segmentation fault for 3D design region of adjoint solver
3 participants