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

Feature boundary coordinates #334

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

Conversation

cburstedde
Copy link
Owner

Allow for coordinates on all tree boundaries

Proposed changes

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.

This may affect use of the coordinates outside of p4est. Any comments @tisaac?

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants