Skip to content

Conversation

leo-collins
Copy link
Contributor

Removes Function.at() method. This is to go in after the next release. Users should now use PointEvaluator.

Comment on lines +474 to 475
got = dest_eval.evaluate(f_dest)
assert np.allclose(got, expected, atol=atol)
Copy link
Contributor

Choose a reason for hiding this comment

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

This test seems to unecessarily rely on point evaluation. In general we can expect that the interpolated functions agree with the linear expression everywhere on the domain, not just at the given coords. We should consider changing this to assert errornorm(f_dest, expected) <= atol where expected is the ufl.Expr.

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.

2 participants