#include "petscdmplex.h" PetscErrorCode DMPlexRebalanceSharedPoints(DM dm, PetscInt entityDepth, PetscBool useInitialGuess, PetscBool parallel, PetscBool *success)
dm | - The DMPlex object. | |
entityDepth | - depth of the entity to balance (0 -> balance vertices). | |
useInitialGuess | - whether to use the current distribution as initial guess (only used by ParMETIS). | |
parallel | - whether to use ParMETIS and do the partition in parallel or whether to gather the graph onto a single process and use METIS. |
success | - whether the graph partitioning was successful or not. If not, try useInitialGuess=True and parallel=True. |