MatKAIJRestoreS#
Restore array obtained with MatKAIJGetS()
Synopsis#
#include "petscmat.h"
PetscErrorCode MatKAIJRestoreS(Mat A, PetscScalar *S[])
Logically Collective
Input Parameters#
A - the
MATKAIJmatrixS - location of pointer to array obtained with
MatKAIJGetS()
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 S, 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 MatKAIJGetSRead()/MatKAIJRestoreSRead() to read S without raising the state.
See Also#
Matrices, Mat, MATKAIJ, MatKAIJGetS(), MatKAIJGetSRead(), MatKAIJRestoreSRead()
Level#
advanced
Location#
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages