MatFDColoringSetUp#
Sets up the internal data structures of matrix coloring context for the later use.
Synopsis#
#include "petscmat.h"
PetscErrorCode MatFDColoringSetUp(Mat mat, ISColoring iscoloring, MatFDColoring color)
Collective
Input Parameters#
mat - the matrix containing the nonzero structure of the Jacobian
iscoloring - the coloring of the matrix; usually obtained with
MatGetColoring()orDMCreateColoring()color - the matrix coloring context
Notes#
When the coloring type is IS_COLORING_LOCAL the coloring is in the local ordering of the unknowns.
See Also#
Mat, MatFDColoring, MatFDColoringCreate(), MatFDColoringDestroy()
Level#
beginner
Location#
Examples#
src/mat/tutorials/ex16.c
src/mat/tests/ex240.c
src/snes/tutorials/ex14.c
src/dm/tests/ex26.c
src/snes/tests/ex1.c
src/snes/tests/ex1f.F90
src/ts/tests/ex4.c
src/ts/tests/ex5.c
Implementations#
MatFDColoringSetUp_MPIXAIJ() in src/mat/impls/aij/mpi/fdmpiaij.c
MatFDColoringSetUp_SeqXAIJ() in src/mat/impls/aij/seq/fdaij.c
Index of all MatFD routines
Table of Contents for all manual pages
Index of all manual pages