# MatMFFDResetHHistory
Resets the counter to zero to begin collecting a new set of differencing histories for the `MATMFFD` matrix 
## Synopsis
```
#include "petscmat.h"   
PetscErrorCode MatMFFDResetHHistory(Mat J)
```
Logically Collective


## Input Parameters

- ***J -*** the matrix-free matrix context





## Note
Use `MatMFFDSetHHistory()` to create the original history counter.


## See Also
 `MATMFFD`, `MatMFFDGetH()`, `MatCreateSNESMF()`,
`MatMFFDSetHHistory()`, `MatMFFDSetFunctionError()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/mffd/mffd.c.html#MatMFFDResetHHistory">src/mat/impls/mffd/mffd.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/mffd/mffd.c.html#MatMFFDResetHHistory_MFFD">MatMFFDResetHHistory_MFFD in src/mat/impls/mffd/mffd.c</A><BR>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
