<div>Dear petsc-users</div>
<div>&nbsp;</div>
<div>When I try to solve a linear equation Ax=b with BicgStab preconditioner, I got</div>
<div>an error &quot;Matrix is missing diagonal number&quot;.&nbsp; That is because I have zeros on</div>
<div>the diagonal of the matrix. </div>
<div>&nbsp;</div>
<div>I am wondering if there is some simple method to avoid that?</div>
<div>&nbsp;</div>
<div>Best,</div>
<div>Liang</div>