MatKAIJRestoreT#

Restore array obtained with MatKAIJGetT()

Synopsis#

#include "petscmat.h" 
PetscErrorCode MatKAIJRestoreT(Mat A, PetscScalar *T[])

Logically Collective

Input Parameters#

Notes#

This routine zeros the array pointer to prevent accidental reuse after it has been restored. If NULL is passed, it will not attempt to zero the array pointer.

Every process must restore T, because doing so raises the state of the MATKAIJ matrix. Before its next use, a MATMPIKAIJ then rebuilds its cached submatrices locally, and its next MatMult() checks, and possibly rebuilds, its ghost scatter collectively. Use MatKAIJGetTRead()/MatKAIJRestoreTRead() to read T without raising the state.

See Also#

Matrices, Mat, MATKAIJ, MatKAIJGetT(), MatKAIJGetTRead(), MatKAIJRestoreTRead()

Level#

advanced

Location#

src/mat/impls/kaij/kaij.c


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