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 compute Jacobians
J - matrix with the correct nonzero structured (obviously without the correct Jacobian values)

Location: src/da/utils/fdda.c
IS and DA Index
Table of Contents