<div dir="ltr"><div>What PETSc setting of KSP and PC can be used to solve a linear system with matrix with null elements on the main diagonal? Such matrices arise on monolithic methods of solving Navier-Stokes equation.<br><br>I understand it doesn't matter for the KSP method, right?<br><br>I know that for lots of PC methods it won't work, like Jacobi or SOR. Is there any PC that can handle such matrices?<br><br></div>For PC method that can't handle hollow matrices, are there any kind of treatment provided by PETSc that can be done to the linear system to ensureĀ the matrix will have only non-null elements on the main diagonal? Maybe some kind of matrix reordering?<br clear="all"><div><div><br>-- <br><div class="gmail_signature">Lucas Clemente Vella<br><a href="mailto:lvella@gmail.com" target="_blank">lvella@gmail.com</a></div>
</div></div></div>