Actual source code: petscdt.h
petsc-3.5.4 2015-05-23
1: /*
2: Common tools for constructing discretizations
3: */
7: #include <petscsys.h>
9: /*S
10: PetscQuadrature - Quadrature rule for integration.
12: Level: developer
14: .seealso: PetscQuadratureCreate(), PetscQuadratureDestroy()
15: S*/
16: typedef struct _p_PetscQuadrature *PetscQuadrature;
18: PETSC_EXTERN PetscErrorCode PetscQuadratureCreate(MPI_Comm, PetscQuadrature *);
19: PETSC_EXTERN PetscErrorCode PetscQuadratureGetData(PetscQuadrature, PetscInt*, PetscInt*, const PetscReal *[], const PetscReal *[]);
20: PETSC_EXTERN PetscErrorCode PetscQuadratureSetData(PetscQuadrature, PetscInt, PetscInt, const PetscReal [], const PetscReal []);
21: PETSC_EXTERN PetscErrorCode PetscQuadratureView(PetscQuadrature, PetscViewer);
22: PETSC_EXTERN PetscErrorCode PetscQuadratureDestroy(PetscQuadrature *);
24: typedef struct {
25: PetscReal *v0, *n, *J, *invJ, *detJ, *vol;
26: } PetscCellGeometry;
28: PETSC_EXTERN PetscErrorCode PetscDTLegendreEval(PetscInt,const PetscReal*,PetscInt,const PetscInt*,PetscReal*,PetscReal*,PetscReal*);
29: PETSC_EXTERN PetscErrorCode PetscDTGaussQuadrature(PetscInt,PetscReal,PetscReal,PetscReal*,PetscReal*);
30: PETSC_EXTERN PetscErrorCode PetscDTReconstructPoly(PetscInt,PetscInt,const PetscReal*,PetscInt,const PetscReal*,PetscReal*);
31: PETSC_EXTERN PetscErrorCode PetscDTGaussTensorQuadrature(PetscInt,PetscInt,PetscReal,PetscReal,PetscQuadrature*);
32: PETSC_EXTERN PetscErrorCode PetscDTGaussJacobiQuadrature(PetscInt,PetscInt,PetscReal,PetscReal,PetscQuadrature*);
34: #endif