Skip to content

Factor the TLM calculation out of Hessian calculation#212

Merged
JHopeCollins merged 5 commits intodham/abstract_reduced_functionalfrom
JHopeCollins/tlm
Jul 23, 2025
Merged

Factor the TLM calculation out of Hessian calculation#212
JHopeCollins merged 5 commits intodham/abstract_reduced_functionalfrom
JHopeCollins/tlm

Conversation

@JHopeCollins
Copy link
Contributor

Currently there is no way of asking pyadjoint to calculate the action of the TLM unless it's as part of the Hessian action.
This PR just make the TLM action a first class citizen like the adjoint and Hessian, with a driver and a ReducedFunctional method of its own.

@JHopeCollins JHopeCollins self-assigned this Jun 30, 2025
@JHopeCollins JHopeCollins added the enhancement New feature or request label Jun 30, 2025
Copy link
Member

@dham dham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but will need tests (probably in Firedrake)

@jorgensd
Copy link
Member

jorgensd commented Jul 1, 2025

Looks good to me, but will need tests (probably in Firedrake)

I like this as well. I can add a test to https://github.com/jorgensd/dxa/blob/main/tests/test_poisson_mother.py#L90 as well, as I already compute the Tlm by hand there.

@JHopeCollins
Copy link
Contributor Author

Looks good to me, but will need tests (probably in Firedrake)

Firedrake tests in firedrakeproject/firedrake#4448

@JHopeCollins JHopeCollins marked this pull request as ready for review July 16, 2025 15:41
@JHopeCollins JHopeCollins merged commit 2edf03b into dham/abstract_reduced_functional Jul 23, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants