<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 22, 2017 at 11:13 AM, Eric Chamberland <span dir="ltr"><<a href="mailto:Eric.Chamberland@giref.ulaval.ca" target="_blank">Eric.Chamberland@giref.ulaval.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have 2 questions:<br>
<br>
First, I am looking for a function that is almost like MatMissingDiagonal, but that would return me *all* missing diagonal entries.<br>
<br>
Does it exists?<br></blockquote><div><br></div><div>No</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If not, is there another way of doing this?<br></blockquote><div><br></div><div>Not a nice way, unfortunately. It is fairly dependent on the implementation. You could call GetRow() for every row and check.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Second: after searching through Petsc list, I found this that upset me a bit:<br>
<br>
<a href="https://www.mail-archive.com/petsc-users@mcs.anl.gov/msg22867.html" rel="noreferrer" target="_blank">https://www.mail-archive.com/p<wbr>etsc-users@mcs.anl.gov/msg2286<wbr>7.html</a><br>
<br>
so maybe I should modify our code to be fully compliant with this? I have some examples (MUMPS) that are working without diagonal entries but I didn't tried other PCs or KSPs...<br></blockquote><div><br></div><div>We use the diagonal frequently, for instance in the factorization PCs. I am guessing we put in the diagonal when converting to the MUMPS format.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks,<br>
<br>
Eric<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_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="http://www.caam.rice.edu/~mk51/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div>
</div></div>