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

Analytic gradient breaks in parallel for integrals of certain measures #46

Open
zjwegert opened this issue Mar 14, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@zjwegert
Copy link
Owner

zjwegert commented Mar 14, 2024

When an optimisation function does not contain a measure over the whole computational domain but the analytic derivative does, the ghost DoFs will not be allocated. I.e., for J(u,φ,dΩ,dΓ_N) = ∫(g*u)dΓ_N with analytic shape derivative dJ(q,u,φ,dΩ,dΓ_N) = ∫(κ*∇(u)⋅∇(u)*q*(DH ∘ φ)*(norm ∘ ∇(φ)))dΩ, an error will be thrown saying AssertionError: You are trying to set a value that is not stored in the local portion.

The current work around for this problem is to modify J to be J(u,φ,dΩ,dΓ_N) = ∫(g*u)dΓ_N + ∫(0)dΩ.

The hope is that the move to PartitionedArrays 0.4 will help resolve this issue.

Test scripts available at scripts/_dev/bug_issue_46/...

@zjwegert zjwegert added the bug Something isn't working label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant