petsc-3.12.5 2020-03-29
Report Typos and Errors

PetscGaussLobattoLegendreIntegrate

Compute the L2 integral of a function on the GLL points

Synopsis

#include "petscdt.h" 
PetscErrorCode PetscGaussLobattoLegendreIntegrate(PetscInt n,PetscReal *nodes,PetscReal *weights,const PetscReal *f,PetscReal *in)
Not Collective

Input Parameter

Output Parameter

See Also

PetscDTGaussLobattoLegendreQuadrature()

Level

beginner

Location

src/dm/dt/interface/dt.c

Examples

src/ksp/ksp/examples/tutorials/ex68.c.html
src/ksp/ksp/examples/tutorials/ex69.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 weights
f - the function values at the nodes
in - the value of the integral