petsc-3.12.2 2019-11-22
Report Typos and Errors

PetscGaussLobattoLegendreElementAdvectionCreate

computes the advection operator for a single 1d GLL element

Synopsis

#include "petscdt.h" 
PetscErrorCode PetscGaussLobattoLegendreElementAdvectionCreate(PetscInt n,PetscReal *nodes,PetscReal *weights,PetscReal ***AA)
Not Collective

Input Parameter

Output Parameter

Notes

Destroy this with PetscGaussLobattoLegendreElementAdvectionDestroy()

This is the same as the Gradient operator multiplied by the diagonal mass matrix

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

See Also

PetscDTGaussLobattoLegendreQuadrature(), PetscGaussLobattoLegendreElementLaplacianCreate(), PetscGaussLobattoLegendreElementAdvectionDestroy()

Level

beginner

Location

src/dm/dt/interface/dt.c

Examples

src/ts/examples/tutorials/ex50.c.html
src/tao/unconstrained/examples/tutorials/spectraladjointassimilation.c.html

Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages
n - the number of GLL nodes
nodes - the GLL nodes
weights - the GLL weightss
AA - the stiffness element