Dear all, <br><br>I tried to use ksp to solve some problem. I got some Segmentation Violation error. And I got result from the solver as below. I am wondering if the ksp matrix has some error, cause I got the nonzeros allocated wrong. Can anyone dig out some valuable information from the ksp output? Thanks.<br>
--------------------------------------------------------------------------------------------------<br><span style="color: rgb(255, 102, 102);">  total: nonzeros=38449, allocated nonzeros=52103</span><br>reason code = 2, its = 2546<br>
KSP Object:<br>  type: gmres<br>    GMRES: restart=30, using Classical (unmodified) Gram-Schmidt Orthogonalization with no iterative refinement<br>    GMRES: happy breakdown tolerance 1e-30<br>  maximum iterations=5000, initial guess is zero<br>
  tolerances:  relative=1e-05, absolute=1e-50, divergence=10000<br>  left preconditioning<br>PC Object:<br>  type: ilu<br>    ILU: 0 levels of fill<br>    ILU: factor fill ratio allocated 1<br>    ILU: tolerance for zero pivot 1e-12<br>
         out-of-place factorization<br>         matrix ordering: natural<br>    ILU: factor fill ratio needed 0<br>         Factored matrix follows<br>        Matrix Object:<br>          type=seqbaij, rows=2903, cols=2903<br>
          total: nonzeros=38449, allocated nonzeros=52103<br>              block size is 1<br> linear system matrix = precond matrix:<br>  Matrix Object:<br>    type=seqbaij, rows=2903, cols=2903<br>    total: nonzeros=38449, allocated nonzeros=52103<br>
        block size is 1<br><br>Nan<br>