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

Calculate quadrant boundary coordinates #335

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

cburstedde
Copy link
Owner

Calculate quadrant boundary coordinates

Proposed changes

Create functions to export any corner coordinates and face or odge midpoint of any valid p4est quadrant. The quadrant must thus be inside the unit tree. The coordinates may or may not be on any boundary of the unit tree.

This is an extension on top of #334. It can help the user create indexing the mesh topology and/or to use hashing to determine the quadrant connectivity.

Previously, coordinates were treated like from the lower left corner of a
quadrant.  Thus, they were not allowed to touch any high face of the unit
tree.  We change this to make coordinates valid on all tree boundaries.  We
also allow coordinates as deep as P4EST_MAXLEVEL (quadrant midpoints).

The idea is to use the coordinates to index any boundary object of a
quadrant, thus any of its corners and face, edge, and volume midpoints.
We had relaxed the requirements on p4est_coordinates_is_valid, thus when
reading a quadrant from a file, use the specific function to verify it.
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