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

Introduce `local_max_patches` in domain #293

Closed tim-griesbach closed 6 months ago

tim-griesbach commented 6 months ago

This PR is adding local_max_patches, i.e. the maximum over all processes of local_num_patches, in fclaw{2,3}d_domain_t. It is sufficient to set the value of local_max_patches in fclaw2d_domain_new since the adaption and partition function as all other domain creation functions in fclaw2d_convenience.c call fclaw2d_domain_new. The value of local_max_patches will be required for planned changes regarding writing VTU files using MPI I/O.

cburstedde commented 6 months ago

Thanks, I'd be fine if this gets merged!