KSP: check -ksp_initial_guess_nonzero first
This otherwise triggers a faulty Running KSP of preonly doesn't make sense with nonzero initial guess you probably want a KSP type of Richardson
.
See also: https://community.freefem.org/t/initial-guess-for-a-petsc-solver/1213/5.
Edited by Pierre Jolivet