<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I tried either <i>./ex19</i> (SNES-example), <i>mpirun ./ex19</i>
      or <i>mpirun -n 1 ./ex19</i>, all with the same result.</p>
    <p>Regards,</p>
    <p>Roland<br>
    </p>
    <div class="moz-cite-prefix">Am 11.10.21 um 14:22 schrieb Matthew
      Knepley:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMYG4Gk+KxdcmJ27ZEoS1UFK4bfY5hgD8PLuc7rL4UNe219K3g@mail.gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">On Mon, Oct 11, 2021 at 8:07 AM Roland Richter
          <<a href="mailto:roland.richter@ntnu.no"
            moz-do-not-send="true" class="moz-txt-link-freetext">roland.richter@ntnu.no</a>>
          wrote:<br>
        </div>
        <div class="gmail_quote">
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            <div>
              <p>Hei,</p>
              <p>at least in gdb it fails with</p>
              <p><span style="font-family:monospace"><span
                    style="color:rgb(0,0,0);background-color:rgb(255,255,255)">Attempting
                    to use an MPI routine before initializing MPICH </span><br>
                  [Inferior 1 (process 7854) exited with code 01] <br>
                  (gdb) backtrace <br>
                  No stack.<br>
                </span></p>
            </div>
          </blockquote>
          <div><br>
          </div>
          <div>What were you running? If it never makes it into PETSc
            code, I am not sure what we are</div>
          <div>doing to cause this.</div>
          <div><br>
          </div>
          <div>  Thanks,</div>
          <div><br>
          </div>
          <div>     Matt</div>
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            <div>
              <p><span style="font-family:monospace"> </span>Regards,</p>
              <p>Roland<br>
                <span style="font-family:monospace"></span></p>
              <div>Am 11.10.21 um 13:57 schrieb Matthew Knepley:<br>
              </div>
              <blockquote type="cite">
                <div dir="ltr">
                  <div dir="ltr">On Mon, Oct 11, 2021 at 5:24 AM Roland
                    Richter <<a href="mailto:roland.richter@ntnu.no"
                      target="_blank" moz-do-not-send="true"
                      class="moz-txt-link-freetext">roland.richter@ntnu.no</a>>
                    wrote:<br>
                  </div>
                  <div class="gmail_quote">
                    <blockquote class="gmail_quote" style="margin:0px
                      0px 0px 0.8ex;border-left:1px solid
                      rgb(204,204,204);padding-left:1ex">Hei,<br>
                      <br>
                      I compiled PETSc with Intel MPI (MPICH) and GCC as
                      compiler (i.e. using<br>
                      Intel OneAPI together with the supplied
                      mpicxx-compiler). Compilation<br>
                      and installation worked fine, but running the
                      tests resulted in the<br>
                      error "Attempting to use an MPI routine before
                      initializing MPICH". A<br>
                      simple test program (attached) worked fine with
                      the same combination.<br>
                      <br>
                      What could be the reason for that?<br>
                    </blockquote>
                    <div><br>
                    </div>
                    <div>Hi Roland,</div>
                    <div><br>
                    </div>
                    <div>Can you get a stack trace for this error using
                      the debugger?</div>
                    <div><br>
                    </div>
                    <div>  Thanks,</div>
                    <div><br>
                    </div>
                    <div>     Matt</div>
                    <div> </div>
                    <blockquote class="gmail_quote" style="margin:0px
                      0px 0px 0.8ex;border-left:1px solid
                      rgb(204,204,204);padding-left:1ex"> Thanks!<br>
                      <br>
                      Regards,<br>
                      <br>
                      Roland Richter<br>
                    </blockquote>
                  </div>
                  <br clear="all">
                  <div><br>
                  </div>
                  -- <br>
                  <div dir="ltr">
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div>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><br>
                              </div>
                              <div><a
                                  href="http://www.cse.buffalo.edu/~knepley/"
                                  target="_blank" moz-do-not-send="true">https://www.cse.buffalo.edu/~knepley/</a><br>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
          </blockquote>
        </div>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div dir="ltr" class="gmail_signature">
          <div dir="ltr">
            <div>
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div>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><br>
                    </div>
                    <div><a href="http://www.cse.buffalo.edu/~knepley/"
                        target="_blank" moz-do-not-send="true">https://www.cse.buffalo.edu/~knepley/</a><br>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
  </body>
</html>