#include "petscksp.h" PetscErrorCode KSPGetOperatorsSet(KSP ksp,PetscBool *mat,PetscBool *pmat)Not collective, though the results on all processes should be the same
mat | - the matrix associated with the linear system was set | |
pmat | - matrix associated with the preconditioner was set, usually the same |