DAGetColoring

Gets the coloring required for computing the Jacobian via finite differences on a function defined using a stencil on the DA.

Synopsis

int DAGetColoring(DA da,ISColoring *coloring,Mat *J)
Collective on DA

Input Parameter

da -the distributed array

Output Parameters

coloring - matrix coloring for use in computing Jacobians
J - matrix with the correct nonzero structure (obviously without the correct Jacobian values)

See Also

ISColoringView(), ISColoringGetIS()

Examples

src/snes/examples/tutorials/ex8.c
src/snes/examples/tutorials/ex9.c

Level:advanced
Location:src/dm/da/utils/fdda.c
DA Index
Table of Contents