#include "petscmat.h" PetscErrorCode MatMFFDSetCheckh(Mat J,PetscErrorCode (*fun)(void*,Vec,Vec,PetscScalar*),void *ctx)Logically Collective on Mat
J | - the MatMFFD matrix | |
fun | - the function that checks h | |
ctx | - any context needed by the function |
Notes: For example, MatMFFDCheckPositivity() insures that all entries of U + h*a are non-negative
The function you provide is called after the default h has been computed and allows you to modify it.
Level:advanced
Location:src/mat/impls/mffd/mffd.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages