Dear all,<div><br></div><div>I tried to solve a 18 by 18 linear system with KSPsolve, the right hand vector and matrix can be found in the file in the attachment. The right hand vector has several zeros and the corresponding row in the matrix only have values in diagonal, I expected zero at this element but got -1 for the answer. I am using the tutorial code in  petsc-3.2-p6/src/ksp/ksp/examples/tutorials/ex1.c as an example to assemble the matrix and vector and to solve the system. I also include the code in the attachment. I am working on a solution now but have run out of ideas. </div>
<div><br></div><div>If you have any hint on the potential solution to this problems let me know.</div><div><br></div><div>Thanks,</div><div>Nan </div>