MatFDColoringApplyTS

Given a matrix for which a MatFDColoring context has been created, computes the Jacobian for a function via finite differences.

Synopsis

#include "petscmat.h" 
PetscErrorCode  MatFDColoringApplyTS(Mat J,MatFDColoring coloring,PetscReal t,Vec x1,MatStructure *flag,void *sctx)
Collective on Mat, MatFDColoring, and Vec

Input Parameters

mat - location to store Jacobian
coloring - coloring context created with MatFDColoringCreate()
x1 - location at which Jacobian is to be computed
sctx - context required by function, if this is being used with the TS solver then it is TS object, otherwise it is null

See Also

MatFDColoringCreate(), MatFDColoringDestroy(), MatFDColoringView(), MatFDColoringSetFunction()

Keywords

coloring, Jacobian, finite differences

Level:intermediate
Location:
src/mat/matfd/fdmatrix.c
Index of all MatFD routines
Table of Contents for all manual pages
Index of all manual pages