DMSwarmSortGetNumberOfPointsPerCell#

Returns the number of points in a cell

Synopsis#

#include "petscdmda.h"      
#include "petscdmplex.h"    
#include "petscdmswarm.h"   
PetscErrorCode DMSwarmSortGetNumberOfPointsPerCell(DM sw, PetscInt cell, PetscInt *npoints)

Not Collective

Input Parameters#

  • sw - a DMSWARM objects

  • cell - the cell number in the cell DM

Output Parameter#

  • npoints - the number of points in the cell

Notes#

You must call DMSwarmSortGetAccess() before you can call DMSwarmSortGetNumberOfPointsPerCell()

See Also#

DMSWARM, DMSwarmSetType(), DMSwarmSortGetAccess(), DMSwarmSortGetPointsPerCell()

Level#

advanced

Location#

src/dm/impls/swarm/swarmpic_sort.c

Examples#

src/ksp/ksp/tutorials/ex70.c
src/dm/tutorials/ex20.c


Index of all DMSwarm routines
Table of Contents for all manual pages
Index of all manual pages