PointFunctionConstant
A PointFunction that is a constant at all locations. The constant itself is a real number pointed to by $ctx$.
Synopsis
#include "mesh.h"
int PointFunctionConstant(int n, int comp, double *x, double *y, double *z, PetscScalar *values, void *ctx)
Input Parameters
| n | - The number of points
|
| comp | - The number of components
|
| x,y,z | - The coordinates of points
|
| ctx | - The constant
|
Output Parameter
values -The location where the constant is stored (n*comp times)
Keywords
point function
See Also
PointFunctionOne, PointFunctionZero
Level:beginner
Location:src/mesh/interface/pointFunction.c
Index of all Mesh routines
Table of Contents for all manual pages
Index of all manual pages
Examples
src/mesh/examples/tutorials/unstructured_1d.c.html
src/mesh/examples/tutorials/unstructured_2d.c.html
src/gsolver/examples/tutorials/poisson.c.html
src/gsolver/examples/tutorials/poisson2.c.html
src/gsolver/examples/tutorials/control.c.html
src/gsolver/examples/tutorials/stokes.c.html