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

Add methods for getting L1 distance of a point from reference cells #33

Merged
merged 18 commits into from
Feb 15, 2023

Conversation

ReubenHill
Copy link

@ReubenHill ReubenHill commented Jan 23, 2023

Note that tensor product doesn't work yet
In firedrake contains_point has sympy arguments given to it and I can't
think of a way to make it work with distance_to_point since you have to
actually do the computation to get the distance. Maybe there's a way to
force sympy to play nice? The error I get is
TypeError: cannot determine truth value of Relational
By changing the logic slightly we avoid needing to use min and the
code ought to work with sympy.
@ReubenHill ReubenHill marked this pull request as ready for review January 27, 2023 17:05
FIAT/reference_element.py Outdated Show resolved Hide resolved
@ReubenHill ReubenHill changed the title Guarantee finding cell for point on boundary Add methods for getting L1 distance of a point from reference cells Feb 8, 2023
@dham dham merged commit f0846c9 into master Feb 15, 2023
@dham dham deleted the ReubenHill/point-locate branch February 15, 2023 16:23
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