What can go wrong when using preconditoned Krylov methods from KSP (PETSc's linear solver package) to solve a sparse linear system such as those obtained by discretizing and linearizing partial differential equations?
What steps can I take to determine what is going wrong for my problem?
What changes can I make to successfully and efficiently solve my linear system?
petsc
tag. The methodology is general, but I think the answer would be less useful if each "try this" did not also include the "how". Alternatively, the "how" would need to be much longer (and more error-prone for the viewer) if it needed to be explained in a software-agnostic way. If someone wants to explain how to do all these things using a different package, I will happily make the question software-agnostic and change my answer to state that it describes what to do in PETSc. Note: I added this, which is an enhanced version of an FAQ, so I could like people to this site. $\endgroup$