petsc-3.7.1 2016-05-15
Report Typos and Errors

MatMFFDSetHHistory

Sets an array to collect a history of the differencing values (h) computed for the matrix-free product.

Synopsis

#include "petscmat.h"   
PetscErrorCode  MatMFFDSetHHistory(Mat J,PetscScalar history[],PetscInt nhistory)
Logically Collective on Mat Many br

Input Parameters

J - the matrix-free matrix context Many br
histroy - space to hold the history Many br
nhistory - number of entries in history, if more entries are generated than Many brnhistory, then the later ones are discarded Many br

Many br

Notes

Use MatMFFDResetHHistory() to reset the history counter and collect Many bra new batch of differencing parameters, h. Many br

Keywords

SNES, matrix-free, h history, differencing history

See Also

MatMFFDGetH(), MatCreateSNESMF(),
MatMFFDResetHHistory(), MatMFFDSetFunctionError() Many br

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