#include "petscmat.h" PetscErrorCode MatMFFDSetFunction(Mat mat,PetscErrorCode (*func)(void*,Vec,Vec),void *funcctx)Logically Collective on Mat
mat | - the matrix free matrix created via MatCreateSNESMF() or MatCreateMFFD() | |
func | - the function to use | |
funcctx | - optional function context passed to function |
func (void *funcctx, Vec x, Vec f)
funcctx | - user provided context | |
x | - input vector | |
f | - computed output function |
If this is not set then it will use the function set with SNESSetFunction() if MatCreateSNESMF() was used.
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