# PetscDualSpaceLagrangeSetUseMoments
Set the flag for moment functionals 
## Synopsis
```
#include "petscfe.h" 
PetscErrorCode PetscDualSpaceLagrangeSetUseMoments(PetscDualSpace sp, PetscBool useMoments)
```
Logically collective


## Input Parameters

- ***sp -*** The `PetscDualSpace`
- ***useMoments -*** The flag for moment functionals





## See Also
 `PetscDualSpace`, `PetscDualSpaceLagrangeGetUseMoments()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c.html#PetscDualSpaceLagrangeSetUseMoments">src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c.html#PetscDualSpaceLagrangeSetUseMoments_Lagrange">PetscDualSpaceLagrangeSetUseMoments_Lagrange in src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c</A><BR>


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


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