Skip to content

Introduce inclusion_mapping operation #3581

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

Open
wants to merge 110 commits into
base: main
Choose a base branch
from

Conversation

schnellerhase
Copy link
Contributor

@schnellerhase schnellerhase commented Dec 29, 2024

Given two meshes $T_\text{from}$, $T_\text{to}$ that are contained in one another $T_\text{from} \subset T_\text{to}$, in the sense of vertices existing in both. The inclusion_mapping function computes the global indices in $T_\text{to}$ of the 'vertices in $T_\text{from}$.

The computed index mapping thus generally describes how one refined mesh is contained in another and is a first step for a multi grid transfer operator.

This is a strictly local computation. If a vertex is not to be found in $T_\text{to}$ is is marked as $-1$ in the map.

Calling inclusion_mapping with a pair $(T_\text{coarse}, T_\text{fine})$, where $T_\text{fine}$ is produced by refinement of $T_\text{coarse}$ and using the identity partitioner, it is guaranteed, that all locally owned vertices will be found in $T_\text{fine}$.

@schnellerhase schnellerhase marked this pull request as ready for review January 4, 2025 10:31
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