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