:orphan: # MatMFFDSetPeriod Sets how often h is recomputed for a `MATMFFD` matrix, by default it is every time ## Synopsis ``` #include "petscmat.h" PetscErrorCode MatMFFDSetPeriod(Mat mat, PetscInt period) ``` Logically Collective ## Input Parameters - ***mat -*** the `MATMFFD` matrix free matrix - ***period -*** 1 for every time, 2 for every second etc ## Options Database Key - ***-mat_mffd_period -*** Sets how often `h` is recomputed ## See Also [](ch_matrices), `Mat`, `MATMFFD`, `MatCreateSNESMF()`, `MatMFFDGetH()`, `MatMFFDSetHHistory()`, `MatMFFDResetHHistory()` ## Level advanced ## Location src/mat/impls/mffd/mffd.c ## Implementations MatMFFDSetPeriod_MFFD in src/mat/impls/mffd/mffd.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/mffd/mffd.c) [Index of all Mat routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)