# TaoAppGetColoring

Set the matrix coloring to be used when computing the Hessian by finite differences.

## Synopsis

    #include "tao.h"
    int TaoAppGetColoring(TAO_APPLICATION taoapp, ISColoring *coloring)

Collective on TAO_APPLICATION

## Input Parameters

| app | - the TAO_APPLICATION context
| coloring | - the coloring to be used

## Note

The gradient evaluation must be set using the routine TaoAppSetGradientRoutine().

.keywords: TAO_APPLICATION, finite differences, Hessian, coloring, sparse

## See Also

TaoAppSetHessianRoutine(), TaoAppDefaultComputeHessianColor(),
TaoAppSetGradientRoutine()

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