Skip to content

Efficient alternative for locate_cell to find all elements that share a point #3782

Answered by dham
SouzaEM asked this question in Firedrake support
Discussion options

You must be logged in to vote

There are two issues here. One is the point evaluation functional. The other is your query about points that are on the edges of cells.

For the point evaluation functional, it sounds to me like Spyro is attempting to hand code something that Firedrake already explicitly supports. The right way to do this is to use function spaces defined on vertex only meshes. The exact case is described in https://doi.org/10.5194/gmd-17-5369-2024, especially listing 2. The same approach is used for an FWI demo in: https://www.firedrakeproject.org/demos/full_waveform_inversion.py.html and the VertexOnlyMesh is described in some more detail here: https://www.firedrakeproject.org/point-evaluation.html#prima…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@SouzaEM
Comment options

@Ig-dolci
Comment options

@SouzaEM
Comment options

Answer selected by SouzaEM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants