cburstedde / p4est

The "p4est" forest-of-octrees library

Home Page:www.p4est.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comparing two meshes

aellery opened this issue · comments

commented

If I have two meshes that have been refined in different ways, what is the easiest way to compare them to each other?

For example, if I chose a spatial coordinate (x,y) and then created a p4est_quadrant struct from the first mesh that contains (x,y), what is the easiest way to create a second p4est_quadrant struct corresponding to the same position in the second mesh? Is there way to write a get_quad_at_coords(x,y) function?

commented

Nevermind, I worked it out.

I'm wondering what you mean by "creating a quadrant," since p4est usually does all necessary creation of quadrant structures. Two meshes of different refinement usually are partitioned differently, so you would be looking at a relatively sophisticated parallel algorithm. Would you like to elaborate on your exact problem formulation?

Bump for comments/clarification.