DMPlexDistribute() with mesh created via DMPlexCreateSphereMesh()
I have recently created MR !2175 (merged) in which I expanded petsc/src/dm/impls/plex/examples/tutorials/ex7.c
to handle parallel distribution.
Without refining the mesh, the ex7's result for 3 MPI processes does not show a good balancing:
mpiexec -n 3 ./ex7 -dm_view
DM Object: Parallel Mesh 3 MPI processes
type: plex
Parallel Mesh in 2 dimensions:
0-cells: 0 7 7
1-cells: 0 9 9
2-cells: 0 3 3
Labels:
depth: 3 strata with value/size (0 (0), 1 (0), 2 (0))
I have configured PETSc with the following options:
--download-mumps --download-hypre --download-fblaslapack=1 --download-scalapack --download-metis --download-parmetis --download-cmake --download-ml --download-netcdf --with-cxx-dialect=C++11 --download-hdf5 --download-exodusii --download-pnetcdf --download-mpich --download-superlu_dist --with-zlib PETSC_ARCH=arch-linux2-debug --with-debugging=1 --download-lX11 --download-lz --download-zlib --with-valgrind-include=/usr/include/valgrind