DLR-AMR / t8code

Parallel algorithms and data structures for tree-based adaptive mesh refinement (AMR) with arbitrary element shapes.
https://dlr-amr.github.io/t8code/
GNU General Public License v2.0
136 stars 52 forks source link

Implement partition for coarsening #33

Open holke opened 4 years ago

holke commented 4 years ago

If the appropriate flag is set in forest partitioning, families should not get seperated by process boundaries, thus ensuring that coarsening one level is a process local operation.

This needs changing the first and last elements on a process such that only whole families land on a single process after the partition operation.

lukasdreyer commented 1 year ago

@holke Do you have an idea how to compute the new offsets after computing the standard offsets, without sending the elements first? All my ideas boil down to essentially this (with different possibilities on how to do the adjustements):

Do the computation of the standard offsets, send the elements, then adjust the number of elements on a process slightly (considering edgecases like empty ranks), compute new offsets and finally send some elements again according to these new offsets.

holke commented 1 year ago

Have not thought about this yet.