PetscGaussLobattoLegendreElementMassCreate#
Build the elemental mass matrix for a single 1D Gauss-Lobatto-Legendre (GLL) spectral element
Synopsis#
#include "petscdt.h"
PetscErrorCode PetscGaussLobattoLegendreElementMassCreate(PetscInt n, PetscReal *nodes, PetscReal *weights, PetscReal ***AA)
Not Collective; No Fortran Support
Input Parameters#
n - number of GLL nodes
nodes - the GLL quadrature nodes
weights - the GLL quadrature weights
Output Parameter#
AA - newly allocated
nxnmass matrix asPetscReal **
Note#
Free with PetscGaussLobattoLegendreElementMassDestroy().
See Also#
PetscDTGaussLobattoLegendreQuadrature(), PetscGaussLobattoLegendreElementMassDestroy(), PetscGaussLobattoLegendreElementLaplacianCreate(), PetscGaussLobattoLegendreElementAdvectionCreate()
Level#
beginner
Location#
Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages