PetscWeakFormGetJacobian#
Retrieve the lists of Jacobian pointwise functions g0, g1, g2, and g3 for a given key from a PetscWeakForm
Synopsis#
#include "petscds.h"
PetscErrorCode PetscWeakFormGetJacobian(PetscWeakForm wf, DMLabel label, PetscInt val, PetscInt f, PetscInt g, PetscInt part, PetscInt *n0, void (***g0)(PetscInt, PetscInt, PetscInt, const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], PetscReal, PetscReal, const PetscReal[], PetscInt, const PetscScalar[], PetscScalar[]), PetscInt *n1, void (***g1)(PetscInt, PetscInt, PetscInt, const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], PetscReal, PetscReal, const PetscReal[], PetscInt, const PetscScalar[], PetscScalar[]), PetscInt *n2, void (***g2)(PetscInt, PetscInt, PetscInt, const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], PetscReal, PetscReal, const PetscReal[], PetscInt, const PetscScalar[], PetscScalar[]), PetscInt *n3, void (***g3)(PetscInt, PetscInt, PetscInt, const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], const PetscInt[], const PetscInt[], const PetscScalar[], const PetscScalar[], const PetscScalar[], PetscReal, PetscReal, const PetscReal[], PetscInt, const PetscScalar[], PetscScalar[]))
Not Collective
Input Parameters#
wf - The
PetscWeakFormlabel - The label selecting the mesh region, or
NULLfor the entire domainval - The label value selecting the mesh region
f - The test field number
g - The trial field number
part - The equation part, or 0 if unused
Output Parameters#
n0 - The number of
g0pointwise functions registered for this keyg0 - The array of
g0Jacobian pointwise functionsn1 - The number of
g1pointwise functions registered for this keyg1 - The array of
g1Jacobian pointwise functionsn2 - The number of
g2pointwise functions registered for this keyg2 - The array of
g2Jacobian pointwise functionsn3 - The number of
g3pointwise functions registered for this keyg3 - The array of
g3Jacobian pointwise functions
See Also#
PetscWeakForm, PetscWeakFormSetJacobian(), PetscWeakFormAddJacobian(), PetscWeakFormHasJacobian(), PetscWeakFormGetJacobianPreconditioner()
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