<div dir="ltr">Thanks, Hong and Matt,<div><br></div><div>I think the matrix is singular.  I will be checking the implementation.</div><div><br></div><div>Fande,</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 10, 2017 at 8:57 AM, Hong <span dir="ltr"><<a href="mailto:hzhang@mcs.anl.gov" target="_blank">hzhang@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Fande,<div><span style="color:rgb(80,0,80);font-size:12.8px">'-pc_factor_shift_amou</span><span style="color:rgb(80,0,80);font-size:12.8px">nt 1' is huge.</span></div><div><font color="#500050"><span style="font-size:12.8px">Try use petsc default shift amount '1.e-14' by </span></font></div><div><font color="#500050"><span style="font-size:12.8px"> '</span></font><span style="color:rgb(80,0,80);font-size:12.8px">-pc_factor_shift_type  nonzero' only.</span></div><span class="HOEnZb"><font color="#888888"><div><font color="#500050"><span style="font-size:12.8px"><br></span></font></div></font></span><div><span class="HOEnZb"><font color="#888888"><font color="#500050"><span style="font-size:12.8px">Hong<br></span></font></font></span><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 10, 2017 at 9:40 AM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="m_-5019316524916736796gmail-">On Tue, Oct 10, 2017 at 10:36 AM, Kong, Fande <span dir="ltr"><<a href="mailto:fande.kong@inl.gov" target="_blank">fande.kong@inl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Developers,<div><br></div><div>I am trying to use the native LU in PETSc to compute a matrix (arising from a fluid-structure interaction problem). I encounter a zero pivot. The matrix gives the wrong Newton direction when using "-pc_factor_shift_type  nonzero -pc_factor_shift_amou<wbr>nt 1".  I hence guess the matrix is singular.</div><div><br></div><div>Any easy way to detect if or not the matrix is singular??</div></div></blockquote><div><br></div></span><div>That is the easiest way, namely having LU fail. You can catch the failure and do something useful.</div><div><br></div><div>  Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><span class="m_-5019316524916736796gmail-m_2646532440491085814HOEnZb"><font color="#888888"><div>Fande,</div></font></span></div><span class="m_-5019316524916736796gmail-HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="m_-5019316524916736796gmail-HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-5019316524916736796gmail-m_2646532440491085814gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.caam.rice.edu_-7Emk51_&d=DwMFaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=DUUt3SRGI0_JgtNaS3udV68GRkgV4ts7XKfj2opmiCY&m=OzufXo0CFDWCGheboXxUMvKt3soawuoLxqtBqJtH4tc&s=50QybFKpScUhuVT0fSUA4vPnZJrmTUdY0BKJlNOBCS4&e=" target="_blank">https://www.cse.buffalo.edu/~k<wbr>nepley/</a><br></div></div></div></div></div>
</font></span></div></div>
</blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div>