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 the optmisation problem for firedrake and pyrol. #139

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

Ig-dolci
Copy link
Contributor

@Ig-dolci Ig-dolci commented Feb 28, 2024

This PR aims to address the need for a dual RolVector. This method uses the OverloadeType._riesz_representation to map the RolVector from the primal to the dual space.

A dual RolVector is necessary for a case where pyadjoint is incorporated in software using the mathematical concept of primal and dual spaces, such as in Firedrake.

In Firedrake the result of applyAdjointJacobian and applyAdjointHessian are Cofunction. However, RolVector is inherently primal, which leads to errors related to the wrong usage of primal RolVector instead of a dual RolVector.

@Ig-dolci Ig-dolci marked this pull request as ready for review March 5, 2024 22:43
@Ig-dolci
Copy link
Contributor Author

This PR leads to an error in dolfin-adjoint. Such an error can be fixed with the PR 25.

@Ig-dolci Ig-dolci requested a review from jorgensd March 11, 2024 08:23
@Ig-dolci Ig-dolci marked this pull request as draft June 14, 2024 08:07
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.

1 participant