# DMForestGetComputeAdaptivitySF
Get whether transfer PetscSFs should be computed relating the cells of the pre-adaptation forest to the post-adaptiation forest.  After DMSetUp() is called, these transfer PetscSFs can be accessed with DMForestGetAdaptivitySF(). 
## Synopsis
```
#include "petscdmforest.h" 
#include "petscdm.h" 
#include "petscdmlabel.h" 
PetscErrorCode DMForestGetComputeAdaptivitySF(DM dm, PetscBool *computeSF)
```
Not collective


## Input Parameter

- ***dm -*** the post-adaptation forest



## Output Parameter

- ***computeSF -*** default PETSC_TRUE





## See Also
 `DMForestSetComputeAdaptivitySF()`, `DMForestGetAdaptivitySF()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/forest/forest.c.html#DMForestGetComputeAdaptivitySF">src/dm/impls/forest/forest.c</A>


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


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