petsc-3.14.6 2021-03-30
Report Typos and Errors

PCFactorGetMatrix

Gets the factored matrix from the preconditioner context. This routine is valid only for the LU, incomplete LU, Cholesky, and incomplete Cholesky methods.

Synopsis

#include "petscksp.h" 
PetscErrorCode  PCFactorGetMatrix(PC pc,Mat *mat)
Not Collective on PC though Mat is parallel if PC is parallel

Input Parameters

pc - the preconditioner context

Output parameters

mat - the factored matrix

Notes

Does not increase the reference count for the matrix so DO NOT destroy it

Level

advanced

Location

src/ksp/pc/interface/precon.c

Examples

src/ksp/pc/tutorials/ex1.c.html
src/ksp/pc/tutorials/ex2.c.html
src/ksp/ksp/tutorials/ex52.c.html
src/ksp/ksp/tutorials/ex77.c.html
src/ksp/ksp/tutorials/ex52f.F90.html
src/ksp/ksp/tutorials/ex77f.F90.html

Implementations

PCFactorGetMatrix_Factor in src/ksp/pc/impls/factor/factimpl.c

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