#include "petscdmplex.h" PetscErrorCode DMPlexComputeBdIntegral(DM dm, Vec X, DMLabel label, PetscInt numVals, const PetscInt vals[], void (*func)(PetscInt, PetscInt, PetscInt, const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], PetscReal, const PetscReal[], const PetscReal[], PetscInt, const PetscScalar[], PetscScalar[]), PetscScalar *integral, void *user)
dm | - The mesh | |
X | - Global input vector | |
label | - The boundary DMLabel | |
numVals | - The number of label values to use, or PETSC_DETERMINE for all values | |
vals | - The label values to use, or PETSC_NULL for all values | |
func = The function to integrate along the boundary | ||
user | - The user context |
integral | - Integral for each field |