geodynamics / aspect

A parallel, extensible finite element code to simulate convection in both 2D and 3D models.
https://aspect.geodynamics.org/
Other
227 stars 237 forks source link

Add test for load balancing and fix postprocessors #6068

Closed gassmoeller closed 1 month ago

gassmoeller commented 1 month ago

This should check off the last item on the list of #5877. I added a test that quantitatively shows the load balancing is done correctly. By controlling the number of cells in the different parts of a domain and the weight of particles of the two particle worlds I can split the domain in exactly the pattern I want:

Screenshot from 2024-10-10 15-46-22

Red/Blue cells show the parallel partition between the two MPI ranks, green/pink dots show the particles of the two particle worlds. Both parallel domain have a combined weight of 96.000 (n_cells1000 + n_particles particle_weight).