<div dir="auto">What we want to see is the stack trace.<div dir="auto"><br></div><div dir="auto">  Thanks</div><div dir="auto"><br></div><div dir="auto">     Matt</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Sep 28, 2019, 06:33 Michael Wick via petsc-maint <<a href="mailto:petsc-maint@mcs.anl.gov">petsc-maint@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I attached a debugger to my run. The code just hangs without throwing an error message, interestingly. I uses 72 processors. I turned on the ksp monitor. And I can see it hangs either at the beginning or the end of KSP iteration. I also uses valgrind to debug my code on my local machine, which does not detect any issue. I uses fgmres + fieldsplit, which is really a standard option.</div><div><br></div><div>Do you have any suggestions to do?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 27, 2019 at 8:17 PM Zhang, Junchao <<a href="mailto:jczhang@mcs.anl.gov" target="_blank" rel="noreferrer">jczhang@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div>
<div dir="ltr">How many MPI ranks did you use? If it is done on your desktop, you can just attach a debugger to a MPI process to see what is going on.
<div><br clear="all">
<div>
<div dir="ltr">
<div dir="ltr">--Junchao Zhang</div>
</div>
</div>
<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Sep 27, 2019 at 4:24 PM Michael Wick via petsc-maint <<a href="mailto:petsc-maint@mcs.anl.gov" target="_blank" rel="noreferrer">petsc-maint@mcs.anl.gov</a>> wrote:<br>
</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">
<div>Hi PETSc:</div>
<div><br>
</div>
<div>I have been experiencing a code stagnation at certain KSP iterations. This happens rather randomly, which means the code may stop at the middle of a KSP solve and hangs there.</div>
<div><br>
</div>
<div>I have used valgrind and detect nothing. I just wonder if you have any suggestions.</div>
<div><br>
</div>
<div>Thanks!!!</div>
<div>M<br>
</div>
</div>
</blockquote>
</div>
</div>

</blockquote></div>
</blockquote></div>