<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 25, 2017 at 3:42 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
   The error message is generated based on the macro MPICH_NUMVERSION contained in the mpi.h file.<br>
<br>
Apparently MVAPICH also provides this macro, hence PETSc has no way to know that it is not MPICH.<br>
<br>
If you can locate in the MVAPICH mpi.h include files macros related explicitly to MVAPICH then we could possibly use that macro to provide a more specific error message.<br></blockquote><div><br><br></div><div>There is also a macro: MVAPICH2_NUMVERSION in mpi.h. We might use it to have a right message. <br><br></div><div>Looks possible for me.<br><br></div><div>Fande,<br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-HOEnZb"><font color="#888888"><br>
  Barry<br>
</font></span><div class="gmail-HOEnZb"><div class="gmail-h5"><br>
<br>
> On Apr 25, 2017, at 4:35 PM, Kong, Fande <<a href="mailto:fande.kong@inl.gov">fande.kong@inl.gov</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> We configured PETSc with a version of MVAPICH, and complied with another version of MVAPICH.  Got the error messages:<br>
><br>
> error "PETSc was configured with one MPICH mpi.h version but now appears to be compiling using a different MPICH mpi.h version"<br>
><br>
><br>
> Why we could not say something about "MVAPICH" (not "MPICH")?<br>
><br>
> Do we just simply consider all MPI implementations (MVAPICH, maybe Intel MPI, IBM mpi?) based on MPICH as "MPICH"?<br>
><br>
> Fande,<br>
<br>
</div></div></blockquote></div><br></div></div>