# DMPlexDistributeField
Distribute field data to match a given PetscSF, usually the SF from mesh distribution 
## Synopsis
```
#include "petscdmplex.h"   
#include "petscdmlabel.h"  
PetscErrorCode DMPlexDistributeField(DM dm, PetscSF pointSF, PetscSection originalSection, Vec originalVec, PetscSection newSection, Vec newVec)
```
Collective on dm


## Input Parameters

- ***dm -*** The DMPlex object
- ***pointSF -*** The PetscSF describing the communication pattern
- ***originalSection -*** The PetscSection for existing data layout
- ***originalVec -*** The existing data in a local vector



## Output Parameters

- ***newSection -*** The PetscSF describing the new data layout
- ***newVec -*** The new data in a local vector





## See Also
 `DMPlexDistribute()`, `DMPlexDistributeFieldIS()`, `DMPlexDistributeData()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexdistribute.c.html#DMPlexDistributeField">src/dm/impls/plex/plexdistribute.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexdistribute.c)


[Index of all DMPlex routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
