MatISSetLocalMat#

Replace the local matrix stored inside a MATIS object.

Synopsis#

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

Collective

Input Parameters#

  • mat - the matrix

  • local - the local matrix

Notes#

Any previous matrix within the MATIS has its reference count decreased by one.

This can be called if you have precomputed the local matrix and want to provide it to the matrix object MATIS.

See Also#

Matrices, Mat, MATIS, MatISSetLocalMatType, MatISGetLocalMat()

Level#

advanced

Location#

src/mat/impls/is/matis.c

Examples#

src/ksp/ksp/tutorials/ex59.c

Implementations#

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


Edit on GitLab

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