ForestClaw / forestclaw

Quadtree/octree adaptive PDE solver based based on p4est.
http://www.forestclaw.org
BSD 2-Clause "Simplified" License
57 stars 21 forks source link

Feature partition for coarsening #320

Closed hannesbrandt closed 4 months ago

hannesbrandt commented 4 months ago

This adds the function domain_set_partitioning which sets the partition_for_coarsening parameter. If set to 0, future partitions of the domain do not allow for one level of coarsening anymore, but have a more even load distribution.

hannesbrandt commented 4 months ago

Just to clarify, even with partition_for_coarsening set to 0 coarsening is still possible. The parameter switch only affects coarsening at the process boundaries. In the worst case one group of siblings per process can not be coarsened as desired and it will likely be coarsened in regridding after the next partitioning instead.