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

None option for Riesz Representation in derivatives #3552

Merged
merged 11 commits into from
May 8, 2024

Conversation

Ig-dolci
Copy link
Contributor

@Ig-dolci Ig-dolci commented May 2, 2024

ReducedFunctional.derivative returns a gradient in the primal space, differing from conventional terminology. Addressing this in Pyadjoint requires additional thoughts. To accommodate users seeking the derivative is to introduce "None" as an option for riesz_representation.

@Ig-dolci Ig-dolci changed the title Return the derivative in dual space? Add an option to return the derivative in dual space. May 2, 2024
@Ig-dolci Ig-dolci marked this pull request as ready for review May 2, 2024 13:05
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.

I think this is a good workaround. Just needs a test.

@Ig-dolci Ig-dolci changed the title Add an option to return the derivative in dual space. None option for Riesz Representation in derivatives May 8, 2024
@Ig-dolci Ig-dolci requested a review from dham May 8, 2024 14:37
firedrake/adjoint_utils/function.py Outdated Show resolved Hide resolved
tests/regression/test_adjoint_operators.py Outdated Show resolved Hide resolved
firedrake/adjoint_utils/function.py Outdated Show resolved Hide resolved
Default to L2 projection.
@dham dham merged commit af2c9cc into master May 8, 2024
6 of 8 checks passed
@dham dham deleted the dolci/derivative_space branch May 8, 2024 15:32
juliusgh pushed a commit to juliusgh/firedrake that referenced this pull request May 13, 2024
…#3552)

Also default to L2 projection.

---------

Co-authored-by: David A. Ham <david.ham@imperial.ac.uk>
Co-authored-by: Jack Betteridge <43041811+JDBetteridge@users.noreply.github.com>
Ig-dolci added a commit that referenced this pull request Jul 6, 2024
Also default to L2 projection.

---------

Co-authored-by: David A. Ham <david.ham@imperial.ac.uk>
Co-authored-by: Jack Betteridge <43041811+JDBetteridge@users.noreply.github.com>
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