# DMPlexRestoreCellFields
Restore the field values values for a chunk of cells 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexRestoreCellFields(DM dm, IS cellIS, Vec locX, Vec locX_t, Vec locA, PetscScalar **u, PetscScalar **u_t, PetscScalar **a)
```

## Input Parameters

- ***dm     -*** The `DM`
- ***cellIS -*** The cells to include
- ***locX   -*** A local vector with the solution fields
- ***locX_t -*** A local vector with solution field time derivatives, or NULL
- ***locA   -*** A local vector with auxiliary fields, or NULL



## Output Parameters

- ***u   -*** The field coefficients
- ***u_t -*** The fields derivative coefficients
- ***a   -*** The auxiliary field coefficients





## See Also
 [](chapter_unstructured), `DM`, `DMPLEX`, `DMPlexGetFaceFields()`

## Level
developer

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexfem.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)  
