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

annotate FunctionMixin methods _ad_mul and _ad_add #3841

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

Conversation

JHopeCollins
Copy link
Contributor

These are not annotated in the pyadjoint.OverloadedType abstract methods.

@JHopeCollins
Copy link
Contributor Author

Even without no_annotations I don't think these add anything to the tape because they are implemented using Function.vector(). Should they be updated to just use existing Function operations?

@connorjward
Copy link
Contributor

Even without no_annotations I don't think these add anything to the tape because they are implemented using Function.vector(). Should they be updated to just use existing Function operations?

Anything with .vector() is deprecated functionality and should ideally get replaced with Firedrake-specific operations. Vector was a shim class for FEniCS compatibility that has now been abandoned.

Copy link

github-actions bot commented Oct 25, 2024

TestsPassed ✅Skipped ⏭️Failed ❌
Firedrake complex8078 ran6495 passed1583 skipped0 failed

Copy link

github-actions bot commented Oct 25, 2024

TestsPassed ✅Skipped ⏭️Failed ❌
Firedrake real8084 ran7298 passed786 skipped0 failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants