<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Matt,<br>
    <br>
    In that case, what would be a good or accurate way to debug the MPI
    code? I'm trying to determine where the fault lies.<br>
    <pre class="moz-signature" cols="72">Thank you

Yours sincerely,

TAY wee-beng</pre>
    <div class="moz-cite-prefix">On 5/1/2016 9:31 AM, Matthew Knepley
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAMYG4Gk5fNSkW_ALtZcf2WKcVHXTqjhpZF8qk3g8q7Nv72dq0g@mail.gmail.com"
      type="cite">
      <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 moz-do-not-send="true"
                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>
    </blockquote>
    <br>
  </body>
</html>