petsc-3.11.4 2019-09-28
Report Typos and Errors


Flushes all of the accumulated updates out of the LMVM approximation. In practice, this will not actually destroy the data associated with the updates. It simply resets counters, which leads to existing data being overwritten, and MatSolve() being applied as if there are no updates. A boolean flag is available to force destruction of the update vectors.


#include "petscksp.h" 
PetscErrorCode MatLMVMReset(Mat B, PetscBool destructive)
If the user has provided another LMVM matrix as J0, the J0 matrix is also reset in this function.

Input Parameters

B - An LMVM-type matrix
destructive - flag for enabling destruction of data structures

See Also

MatLMVMAllocate(), MatLMVMUpdate()




Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages