PetscPointJacFn#
A prototype of a pointwise function that can be passed to, for example, PetscDSSetJacobian()
for computing Jacobians
Synopsis#
typedef void PetscPointJacFn(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const PetscScalar u_t[], const PetscScalar u_x[], const PetscInt aOff[], const PetscInt aOff_x[], const PetscScalar a[], const PetscScalar a_t[], const PetscScalar a_x[], PetscReal t, PetscReal u_tShift, const PetscReal x[], PetscInt numConstants, const PetscScalar constants[], PetscScalar g[]);
Calling Sequence#
dim - the coordinate dimension
Nf - the number of fields
NfAux - the number of auxiliary fields
uOff - the offset into
u
[] andu_t
[] for each fielduOff_x - the offset into
u_x
[] for each fieldu - each field evaluated at the current point
u_t - the time derivative of each field evaluated at the current point
u_x - the gradient of each field evaluated at the current point
aOff - the offset into
a
[] anda_t
[] for each auxiliary fieldaOff_x - the offset into a_
x
[] for each auxiliary fielda - each auxiliary field evaluated at the current point
a_t - the time derivative of each auxiliary field evaluated at the current point
a_x - the gradient of auxiliary each field evaluated at the current point
t - current time
u_tShift - the multiplier
a
for \(dF/dU_t\)x - coordinates of the current point
numConstants - number of constant parameters
constants - constant parameters
g - output values at the current point
See Also#
PetscPointFn
, PetscDSSetJacobian()
, PetscDSGetJacobian()
, PetscDSSetJacobianPreconditioner(),
PetscDSGetJacobianPreconditioner(),
PetscDSSetDynamicJacobian(),
PetscDSGetDynamicJacobian()`
Level#
beginner
Location#
Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages