TaoAppComputeJacobian

Compute the Jacobian of the nonlinear equations using the routine set by TaoApplicationSetJacobianRoutine().

Synopsis

#include "tao.h"  
int TaoAppComputeJacobian(TAO_APPLICATION taoapp, Vec X, Mat *JJ, Mat *JJPre, MatStructure*flag)
Collective on TAO_APPLICATION

Input Parameters

taopp - the TAO_APPLICATION context
X - the variable vector
H - the Jacobian matrix
HP - the preconditioner for the Jacobian matrix.
flag - flag used in KSPSetOperators()

Output Parameter

H - the Jacobian matrix
HP - the preconditioner for the Jacobian matrix.
flag - flag used in KSPSetOperators()

Keywords

TAO_APPLICATION, objective

See Also

TaoAppComputeFunction(), TaoAppSetJacobianRoutine()

Level:developer
Location:src/petsctao/application/petscapp/tao_app_j.c
TAO Solver Index
Table of Contents