DAAppSetJacobianRoutine

Set a routine that will evaluate the Jacobian on the given DA at the given point.

Synopsis

#include "taodaapplication.h" 
int DAAppSetJacobianRoutine(TAO_APPLICATION daapplication, int (*jac)(TAO_APPLICATION,DA,Vec,Mat,void*),void *ctx)
Collective on TAO_APPLICATION

Input Parameters

daapplication - the DA Application object
jac - the function pointer for the Jacobian evaluation routine
ctx - the jacobian context

Calling sequence of hess

    jac(TAO_APPLICATION daapplication, DA da, Vec x,Mat J,void *ctx);

daapplication - the TAO_APPLICATION context
da - the Distributed Array
x - input vector
J - Jacobian matrix
ctx - user-defined hessian context set from DAAppSetHessianRoutine()

Options Database Key

-tao_view_jacobian -view the jacobian after each evaluation using PETSC_VIEWER_STDOUT_WORLD

Keywords

DA, hessian

See Also

DAAppSetConstraintRoutine();

Level:intermediate
Location:src/petsctao/gridapplication/interface/daapp.c
TAO DA Application Index
Table of Contents