<div class="gmail_quote">On Fri, Aug 26, 2011 at 01:59, Dominik Szczerba <span dir="ltr">&lt;<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":f"> ierr = MatAssemblyEnd(A, MAT_FINAL_ASSEMBLY); CHKERRQ(ierr);<br></div></blockquote></div><br><div>When you run in the debugger and break after it has obviously hung, are all processes stopped at the same place? If you see an error condition, you can run</div>
<div><br></div><div>CHKMEMQ;</div><div>MPI_Barrier(((PetscObject)A)-&gt;comm);</div><div>MatAssemblyBegin(A,MAT_FINAL_ASSEMBLY);</div><div>MatAssemblyEnd(A,MAT_FINAL_ASSEMBLY);</div><div><br></div><div>If it hangs, check where every process is stuck.</div>