<div dir="ltr">I have a colleague who is trying to run some simple test cases. He noticed if he provides the solution vector as the exact solution with a non-zero guess tagged, that the solution vector is zeroed upon return after 0 iterations. The system is just a 5x5 matrix corresponding to a heat equation with Dirichlet BCs. I've copied the KSPView below. He's using petsc-3.6.3.<div><br>John</div><div><br></div><span style="font-family:monospace,monospace"><span style="color:rgb(255,0,0)">solution before kspsolve</span>:Vec Object: 1 MPI processes<br>  type: mpi<br>Process [0]<br><span style="color:rgb(255,0,0)">300<br>300<br>300<br>300<br>300<br></span>KSP Object: 1 MPI processes<br>  type: bcgs<br>  maximum iterations=100<br>  tolerances:  relative=1e-15, absolute=1e-50, divergence=10000<br>  right preconditioning<br>  using nonzero initial guess<br>  using UNPRECONDITIONED norm type for convergence test<br>PC Object: 1 MPI processes<br>  type: <span style="color:rgb(255,0,0)">ilu</span><br>    ILU: out-of-place factorization<br>    0 levels of fill<br>    tolerance for zero pivot 2.22045e-14<br>    matrix ordering: natural<br>    factor fill ratio given 1, needed 1<br>      Factored matrix follows:<br>        Mat Object:         1 MPI processes<br>          type: seqaij<br>          rows=5, cols=5<br>          package used to perform factorization: petsc<br>          total: nonzeros=25, allocated nonzeros=25<br>          total number of mallocs used during MatSetValues calls =0<br>            using I-node routines: found 1 nodes, limit used is 5<br>  linear system matrix = precond matrix:<br>  Mat Object:   1 MPI processes<br>    type: seqaij<br>    rows=5, cols=5<br>    total: nonzeros=25, allocated nonzeros=25<br>    total number of mallocs used during MatSetValues calls =0<br>      using I-node routines: found 1 nodes, limit used is 5<br><span style="color:rgb(255,0,0)">solution after kspsolve</span>:Vec Object: 1 MPI processes<br>  type: mpi<br>Process [0]<br><span style="color:rgb(255,0,0)">0<br>0<br>0<br>0<br></span></span><div><span style="color:rgb(255,0,0);font-family:monospace,monospace">0</span> </div></div>