Skip to content

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