Skip to content

Conversation

angus-g
Copy link
Contributor

@angus-g angus-g commented Sep 16, 2025

We recover the original behaviour by applying the Riesz map when returning the derivative or Hessian actions. Maybe it would be better to provide a .dual() method on the vector and let ROL decide which representation it wants? Probably also needs a test (e.g. on the Firedrake side)?

We recover the original behaviour by applying the Riesz map when
returning the derivative or Hessian actions.
@angus-g
Copy link
Contributor Author

angus-g commented Oct 7, 2025

I think this should be good to go (at least enough to restore functionality for us), I don't know if it should wait for firedrakeproject/firedrake#4581 or not?

@jorgensd
Copy link
Member

jorgensd commented Oct 9, 2025

@angus-g I'm happy to see this merged. I've tested it in the PR for legacy dolfin-adjoint: dolfin-adjoint/dolfin-adjoint#38 and there it works. @dham shall we go ahead and merge this?

@connorjward
Copy link
Contributor

I think this should be good to go (at least enough to restore functionality for us), I don't know if it should wait for firedrakeproject/firedrake#4581 or not?

These changes pass the new Firedrake test in the PR so they are clearly correct. I think it's fine to merge this now.

@jorgensd jorgensd merged commit 7b56717 into dolfin-adjoint:master Oct 9, 2025
1 check passed
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.

3 participants