petsc-main 2021-04-20
Report Typos and Errors

# PetscFEComputeTabulation

Tabulates the basis functions, and perhaps derivatives, at the points provided.

### Synopsis

```#include "petscfe.h"
PetscErrorCode PetscFEComputeTabulation(PetscFE fem, PetscInt npoints, const PetscReal points[], PetscInt K, PetscTabulation T)
```
Not collective

### Input Parameters

 fem - The PetscFE object npoints - The number of tabulation points points - The tabulation point coordinates K - The number of derivatives calculated T - An existing tabulation object with enough allocated space

### Output Parameter

 T - The basis function values and derivatives at tabulation points

### Note

```T->T = B[(p*pdim + i)*Nc + c] is the value at point p for basis function i and component c
```
```T->T = D[((p*pdim + i)*Nc + c)*dim + d] is the derivative value at point p for basis function i, component c, in direction d
```
```T->T = H[(((p*pdim + i)*Nc + c)*dim + d)*dim + e] is the value at point p for basis function i, component c, in directions d and e
```