Skip to content

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
Default to L2 projection.
@dham dham merged commit af2c9cc into master May 8, 2024
@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.

4 participants