[petsc-users] Debugging MatAssemblyEnd

Jed Brown jedbrown at mcs.anl.gov
Fri Aug 26 02:03:38 CDT 2011


On Fri, Aug 26, 2011 at 01:59, Dominik Szczerba <dominik at itis.ethz.ch>wrote:

>  ierr = MatAssemblyEnd(A, MAT_FINAL_ASSEMBLY); CHKERRQ(ierr);
>

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

CHKMEMQ;
MPI_Barrier(((PetscObject)A)->comm);
MatAssemblyBegin(A,MAT_FINAL_ASSEMBLY);
MatAssemblyEnd(A,MAT_FINAL_ASSEMBLY);

If it hangs, check where every process is stuck.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110826/efe47dbe/attachment.htm>


More information about the petsc-users mailing list