<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jan 4, 2016 at 7:28 PM, TAY wee-beng <span dir="ltr"><<a href="mailto:zonexo@gmail.com" target="_blank">zonexo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am trying to debug my CFD Fortran MPI code. I tried to add:<br>
<br>
call PetscBarrier(PETSC_NULL_OBJECT); if (myid==0) print *, "xx"<br>
<br>
to do a rough check on where the error is. xx is a different number for each line.<br>
<br>
I found that whenever I add this line, the code aborts with segmentation error.<br>
<br>
I am using the Intel compiler. Is there any error with my usage?</blockquote><div><br></div><div>I don't think this makes sense since it will try to pull a communicator out of the NULL_OBJECT.</div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888"><br>
-- <br>
Thank you<br>
<br>
Yours sincerely,<br>
<br>
TAY wee-beng<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>