DiscretizationEvaluateFunctionGalerkin

This function calculates the weak form of a function over a single element.

Synopsis

#include "discretization.h" 
int DiscretizationEvaluateFunctionGalerkin(Discretization disc, Mesh mesh, PointFunction f, PetscScalar alpha, int elem, PetscScalar *v, void *ctx)
Collective on Discretization

Input Parameters

disc - The discretization
mesh - The associated mesh
f - The PointFunction of which we want the weak form
alpha - A scalar multiplier
elem - The local element number
ctx - The user-supplied context

Output Parameter

v -The element vector for the given element

Keywords

discretization, function, weak form

See Also

DiscretizationEvaluateOperatorGalerkin(), DiscretizationEvaluateNonlinearOperatorGalerkin()

Level:beginner
Location:
src/grid/discretization/interface/discretization.c
Index of all Discretization routines
Table of Contents for all manual pages
Index of all manual pages