[petsc-users] How to check where code hangs

TAY wee-beng zonexo at gmail.com
Fri Oct 3 02:13:20 CDT 2014


Hi,

This qn is not PETSc related but I hope to get some ans from experienced 
users.

I'm running an MPI code which uses 144 cpu. It aborts after a short 
while. I'm trying to find out where it aborts exactly.

However, being an MPI code, it seems quite difficult.

I used:

call MPI_Barrier(MPI_COMM_WORLD,ierr); if (myid==0) print *, "xxx"

where xxx = 1,2,3 ....

If it prints up to 3, I know it aborts between 3 and 4. However, it 
doesn't seem to work as supposed.

I wonder why.

Also is there a better way to do this?

-- 
Thank you.

Yours sincerely,

TAY wee-beng



More information about the petsc-users mailing list