#include "petscsnes.h" PetscErrorCode SNESComputeJacobian(SNES snes,Vec X,Mat A,Mat B)Collective on SNES

snes | - the SNES context | |

x | - input vector |

A | - Jacobian matrix | |

B | - optional preconditioning matrix |

-snes_lag_preconditioner <lag> | - . -snes_lag_jacobian <lag> | |

-snes_test_jacobian | - compare the user provided Jacobian with one compute via finite differences to check for errors | |

-snes_test_jacobian_display | - display the user provided Jacobian, the finite difference Jacobian and the difference between them to help users detect the location of errors in the user provided Jacobian | |

-snes_test_jacobian_display_threshold <numerical value> | - display entries in the difference between the user provided Jacobian and finite difference Jacobian that are greater than a certain value to help users detect errors | |

-snes_compare_explicit | - Compare the computed Jacobian to the finite difference Jacobian and output the differences | |

-snes_compare_explicit_draw | - Compare the computed Jacobian to the finite difference Jacobian and draw the result | |

-snes_compare_explicit_contour | - Compare the computed Jacobian to the finite difference Jacobian and draw a contour plot with the result | |

-snes_compare_operator | - Make the comparison options above use the operator instead of the preconditioning matrix | |

-snes_compare_coloring | - Compute the finite difference Jacobian using coloring and display norms of difference | |

-snes_compare_coloring_display | - Compute the finite differece Jacobian using coloring and display verbose differences | |

-snes_compare_coloring_threshold | - Display only those matrix entries that differ by more than a given threshold | |

-snes_compare_coloring_threshold_atol | - Absolute tolerance for difference in matrix entries to be displayed by -snes_compare_coloring_threshold | |

-snes_compare_coloring_threshold_rtol | - Relative tolerance for difference in matrix entries to be displayed by -snes_compare_coloring_threshold | |

-snes_compare_coloring_draw | - Compute the finite differece Jacobian using coloring and draw differences | |

-snes_compare_coloring_draw_contour | - Compute the finite differece Jacobian using coloring and show contours of matrices and differences |

src/snes/examples/tutorials/ex62.c.html

src/snes/examples/tutorials/ex77.c.html

src/ts/examples/tutorials/ex48.c.html

Index of all SNES routines

Table of Contents for all manual pages

Index of all manual pages