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

Factor the riesz map out into a separate object. #3662

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Conversation

dham
Copy link
Member

@dham dham commented Jul 1, 2024

Description

@dham dham marked this pull request as ready for review July 8, 2024 16:36
o.dat.data[:] = c.dat.data[:]
else:
solve, rhs, soln = self._solver
rhs.assign(value)
Copy link
Member Author

Choose a reason for hiding this comment

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

check whether we need to explicitly zero BCs here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Aparently we need to do that, #3498

Copy link
Contributor

@nbouziani nbouziani left a comment

Choose a reason for hiding this comment

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

This looks good to me.

Comment on lines +48 to +52
def arguments(self):
return (self,)

def coefficients(self):
return ()
Copy link
Contributor

@nbouziani nbouziani Jul 10, 2024

Choose a reason for hiding this comment

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

These two methods are part of the BaseForm interface. I suspect this is needed because it conveniently allows the use of arguments as if they were base forms in a few places in pyadjoint. I think this suggests that, in the long term, the right thing to do is probably to have ufl.Argument as BaseForm. It mathematically makes sense as arguments map V -> V, i.e. V x V* - > R.

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