:orphan:
# DMSwarmCopyPoint
Copy point pj to point pi in the `DMSWARM`
## Synopsis
```
#include "petscdmswarm.h"
PetscErrorCode DMSwarmCopyPoint(DM dm, PetscInt pi, PetscInt pj)
```
Not Collective
## Input parameters
- ***dm -*** a `DMSWARM`
- ***pi -*** the index of the point to copy
- ***pj -*** the point index where the copy should be located
## See Also
`DM`, `DMSWARM`, `DMSwarmRemovePoint()`
## Level
beginner
## Location
src/dm/impls/swarm/swarm.c
## Examples
src/ksp/ksp/tutorials/ex70.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/swarm/swarm.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)