So ... computation of the preconditioner is actually called by KSPSetUp() instead of PCGetFactoredMatrix(prec,&M)?
Could you please tell me when the system matrix be factorized (incompletely)? thank you.
During a call of KSPSetUp().
Hong
Zhifeng