#include "petscksp.h" PetscErrorCode KSPGetOperators(KSP ksp,Mat *Amat,Mat *Pmat)Collective on ksp
ksp | - the KSP context |
Amat | - the matrix that defines the linear system | |
Pmat | - the matrix to be used in constructing the preconditioner, usually the same as Amat. |