#include "petscfe.h" PetscErrorCode PetscSpaceEvaluate(PetscSpace sp, PetscInt npoints, const PetscReal points[], PetscReal B[], PetscReal D[], PetscReal H[])
sp | - The PetscSpace | |
npoints | - The number of evaluation points, in reference coordinates | |
points | - The point coordinates |
B | - The function evaluations in a npoints x nfuncs array | |
D | - The derivative evaluations in a npoints x nfuncs x dim array | |
H | - The second derivative evaluations in a npoints x nfuncs x dim x dim array |
Note: Above nfuncs is the dimension of the space, and dim is the spatial dimension. The coordinates are given on the reference cell, not in real space.