MatISSetLocalMat#

Replace the local matrix stored inside a MATIS object.

Synopsis#

#include "petscmat.h" 
PetscErrorCode MatISSetLocalMat(Mat mat, Mat local)

Not Collective

Input Parameters#

  • mat - the matrix

  • local - the local matrix

Notes#

This call does not update the state of mat. After replacing the local matrix, call MatAssemblyBegin() and MatAssemblyEnd() on mat before using it, even if local is already assembled. All processes sharing mat must participate in this assembly, including those that did not replace their local matrix. Assembly propagates the change and invalidates cached diagonal blocks and assembled views.

See Also#

Matrices, Mat, MATIS, MatISSetLocalMatType, MatISGetLocalMat(), MatAssemblyBegin(), MatAssemblyEnd()

Level#

intermediate

Location#

src/mat/impls/is/matis.c

Examples#

src/mat/tests/ex23.c
src/mat/tests/ex321.c
src/ksp/ksp/tutorials/ex59.c

Implementations#

MatISSetLocalMat_IS() in src/mat/impls/is/matis.c


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