[petsc-users] Segmentation error when calling PetscBarrier

Barry Smith bsmith at mcs.anl.gov
Mon Jan 4 20:32:05 CST 2016


  You are missing the ,ierr which BTW you would have caught immediately if you used the debugger.

  Barry

  The debugger is not a scary monster, it is one of your best friends. 

> On Jan 4, 2016, at 7:28 PM, TAY wee-beng <zonexo at gmail.com> wrote:
> 
> Hi,
> 
> I am trying to debug my CFD Fortran MPI code. I tried to add:
> 
> call PetscBarrier(PETSC_NULL_OBJECT); if (myid==0) print *, "xx"
> 
> to do a rough check on where the error is. xx is a different number for each line.
> 
> I found that whenever I add this line, the code aborts with segmentation error.
> 
> I am using the Intel compiler. Is there any error with my usage?
> 
> -- 
> Thank you
> 
> Yours sincerely,
> 
> TAY wee-beng
> 



More information about the petsc-users mailing list