:orphan: # DMSwarmComputeLocalSizeFromOptions Compute the local number and distribution of particles based upon a density function determined by options ## Synopsis ``` #include "petscdmswarm.h" PetscErrorCode DMSwarmComputeLocalSizeFromOptions(DM sw) ``` Not Collective ## Input Parameter - ***sw -*** The `DMSWARM` ## See Also `DMSWARM`, `DMSwarmComputeLocalSize()` ## Level advanced ## Location src/dm/impls/swarm/swarmpic.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/swarm/swarmpic.c) [Index of all DMSwarm routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)