#include "petscdt.h" PetscErrorCode PetscQuadratureSetData(PetscQuadrature q, PetscInt dim, PetscInt Nc, PetscInt npoints, const PetscReal points[], const PetscReal weights[])Not collective
q | - The PetscQuadrature object | |
dim | - The spatial dimension , Nc - The number of components | |
npoints | - The number of quadrature points | |
points | - The coordinates of each quadrature point | |
weights | - The weight of each quadrature point |
Note: This routine owns the references to points and weights, so they msut be allocated using PetscMalloc() and the user should not free them.