DAAppSetElementHessianRoutine

Set routine that evaluates the local part of a Hessian matrix on a 2-dimensional DA with 1 degree of freedom.

Synopsis

int DAAppSetElementHessianRoutine(TAO_APPLICATION daapplication, int (*hess)(int[2],PetscScalar[4],PetscScalar[4][4],void*), int flops, void *ctx)
Collective on TAO_APPLICATION

Input Parameters

daapp - the TAO_APPLICATION solver context
hess - local function gradient routine
flops - the number of flops done performed in the hess routine
fgctx - [optional] user-defined context for private data for the evaluation.

Calling sequence of funcgrad

    int hess(int coordinates[2], PetscScalar x[4], PetscScalar h[4][4], void* ctx)

coord - the global coordinates [i j] in each direction of the DA
x - the variables on the DA ( da[j][i], da[j][j+1], da[j+1][i], da[j+1][i+1] ) (bottom left, bottom right, top left, top right)
h - the hessian of this local function for with respect to each variable
ctx - user defined context

Keywords

DA, gradient

See Also

DAAppSetHessianRoutine()

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

Examples

src/petsctao/gridapplication/examples/eptorsion3.c.html

Examples

src/petsctao/gridapplication/examples/jbearing3.c.html

Examples

src/petsctao/gridapplication/examples/minsurf3.c.html

Examples

src/petsctao/gridapplication/examples/combustion3.c.html