#include "petscdmplex.h" PetscErrorCode DMPlexInsertBoundaryValuesEssential(DM dm, PetscReal time, PetscInt field, PetscInt Nc, const PetscInt comps[], DMLabel label, PetscInt numids, const PetscInt ids[], PetscErrorCode (*func)(PetscInt, PetscReal, const PetscReal[], PetscInt, PetscScalar *, void *), void *ctx, Vec locX)
dm | - The DM, with a PetscDS that matches the problem being constrained | |
time | - The time | |
field | - The field to constrain | |
Nc | - The number of constrained field components, or 0 for all components | |
comps | - An array of constrained component numbers, or NULL for all components | |
label | - The DMLabel defining constrained points | |
numids | - The number of DMLabel ids for constrained points | |
ids | - An array of ids for constrained points | |
func | - A pointwise function giving boundary values | |
ctx | - An optional user context for bcFunc |