:orphan:
# PetscGaussLobattoLegendreElementGradientCreate
computes the gradient for a single 1d GLL element 
## Synopsis
```
#include "petscdt.h" 
PetscErrorCode PetscGaussLobattoLegendreElementGradientCreate(PetscInt n, PetscReal *nodes, PetscReal *weights, PetscReal ***AA, PetscReal ***AAT)
```
Not Collective


## Input Parameter

- ***n -*** the number of GLL nodes
- ***nodes -*** the GLL nodes
- ***weights -*** the GLL weights


## Output Parameters
- ***AA -*** the stiffness element
- ***AAT -*** the transpose of AA (pass in `NULL` if you do not need this array)





## Notes
Destroy this with `PetscGaussLobattoLegendreElementGradientDestroy()`

You can access entries in these arrays with AA[i][j] but in memory it is stored in contiguous memory, row oriented


## See Also
 `PetscDTGaussLobattoLegendreQuadrature()`, `PetscGaussLobattoLegendreElementLaplacianDestroy()`, `PetscGaussLobattoLegendreElementGradientDestroy()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/interface/dt.c.html#PetscGaussLobattoLegendreElementGradientCreate">src/dm/dt/interface/dt.c</A>


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


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