# 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
`DMSwarmRemovePoint()`
## Level
beginner
## Location
src/dm/impls/swarm/swarm.c
## Examples
src/ksp/ksp/tutorials/ex70.c.html
---
[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](/docs/manualpages/index.md)
[Index of all manual pages](/docs/manualpages/singleindex.md)