Set the capacity of the current process when repartitioning a pre-adaptation forest (see DMForestGetAdaptivityForest()). After partitioning, the ratio of the weight of each process's cells to the process's capacity will be roughly equal for all processes. A capacity of 0 indicates that the current process should not have any cells after repartitioning.
PetscErrorCode DMForestGetWeightCapacity(DM dm, PetscReal *capacity)
dm -the forest
capacity -this process's capacity
DMForestSetWeightCapacity(), DMForestSetCellWeights(), DMForestSetCellWeightFactor()
Index of all DMFOREST routines
Table of Contents for all manual pages
Index of all manual pages