# DMPlexGlobalToLocalBasis
Transform the values in the given local vector from the global basis to the local basis 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexGlobalToLocalBasis(DM dm, Vec lv)
```

## Input Parameters

- ***dm -*** The `DM`
- ***lv -*** A local vector with values in the global basis



## Output Parameters

- ***lv -*** A local vector with values in the local basis





## Note
This method is only intended to be called inside `DMGlobalToLocal()`. It is unlikely that a user will have a local vector full of coefficients for the global basis unless they are reimplementing GlobalToLocal.


## See Also
 [](chapter_unstructured), `DM`, `DMPLEX`, `DMPlexLocalToGlobalBasis()`, `DMGetLocalSection()`, `DMPlexCreateBasisRotation()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexfem.c.html#DMPlexGlobalToLocalBasis">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)  
