-
Notifications
You must be signed in to change notification settings - Fork 166
Move __future__
interpolation into interpolation.py
#4346
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
Conversation
2e502b6
to
5d5b6e1
Compare
5d5b6e1
to
028fc46
Compare
The `__future__.Interpolator`'s `__new__` method did not include `target_mesh.topological_dimension() == source_mesh.topological_dimension()` in the conditional. This broke the `test_submesh_interpolate_3Dcell_2Dfacet_simplex_sckelton()` inside `test_submesh_interpolate.py` because FIAT was trying to dot arrays with the incorrect shape.
`warnings.deprecated` was added in Python 3.13.
028fc46
to
d7b8b2f
Compare
@@ -182,8 +176,7 @@ def interpolate( | |||
to zero. Ignored if interpolating within the same mesh or onto a | |||
:func:`.VertexOnlyMesh`. | |||
:kwarg ad_block_tag: An optional string for tagging the resulting assemble block on the Pyadjoint tape. | |||
:returns: a new :class:`.Function` in the space ``V`` (or ``V`` if | |||
it was a Function). | |||
:returns: A synbolic :class:`.Interpolate` object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
@@ -1,14 +1,11 @@ | |||
import firedrake.assemble as assemble | |||
import firedrake as fd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure whether we want to import firedrake as fd
within the source code. Usually we resolve circular imports with assemble
by importing it inside the functions.
Description
Moves new interpolation behaviour from
firedrake.__future__
intofiredrake.interpolation
and updated docs and demos.