PetscWeakFormSetObjective#

Set the list of objective pointwise functions for a given key in a PetscWeakForm

Synopsis#

#include "petscds.h" 
PetscErrorCode PetscWeakFormSetObjective(PetscWeakForm wf, DMLabel label, PetscInt val, PetscInt f, PetscInt part, PetscInt n, void (**obj)(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[], PetscInt, const PetscScalar[], PetscScalar[]))

Not Collective

Input Parameters#

  • wf - The PetscWeakForm

  • label - The label selecting the mesh region, or NULL for the entire domain

  • val - The label value selecting the mesh region

  • f - The field number

  • part - The equation part, or 0 if unused

  • n - The number of objective pointwise functions to set

  • obj - The array of objective pointwise functions, or NULL to clear the key

See Also#

PetscWeakForm, PetscWeakFormGetObjective(), PetscWeakFormAddObjective(), PetscWeakFormSetIndexObjective()

Level#

intermediate

Location#

src/dm/dt/interface/dtweakform.c


Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages