<div dir="ltr"><div dir="ltr">On Sat, Dec 18, 2021 at 9:26 AM Tabrez Ali <<a href="mailto:tabrezali@gmail.com">tabrezali@gmail.com</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 dir="ltr"><div>Hi,</div><div><br></div><div>I am trying to compile Fortran code with PETSc 3.16 built without MPI, i.e., --with-mpi=0, and am getting the following error:</div><div><br></div><div><font face="monospace">   call MPI_Comm_rank(MPI_COMM_WORLD,rank,ierr)<br>                                         1<br>Error: Symbol ‘mpi_comm_world’ at (1) has no IMPLICIT type</font></div></div></blockquote><div><br></div><div>Hi Tabrez,</div><div><br></div><div>The definition of MPI_COMM_WORLD is in mpif.h. Are you #including that?</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 dir="ltr"><div>There are no issues with PETSc 3.14 or prior versions. Any ideas as to what could be wrong?</div><div><br></div><div>I do see the following note (below) in <a href="https://petsc.org/main/docs/changes/315/" target="_blank">https://petsc.org/main/docs/changes/315/</a> but I am not sure if it's related:</div><div><div><span style="font-size:1em;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol""><br></span></div><div><i><span style="font-size:1em;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"">Add configure option </span><code style="color:rgb(51,51,51);box-sizing:border-box;font-size:14px"><span style="box-sizing:border-box">--with-mpi-f90module-visibility</span></code><span style="font-size:1em;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol""> </span><span style="font-size:1em;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"">[default=``1``]. With</span><span style="font-size:1em;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol""> </span><code style="color:rgb(51,51,51);box-sizing:border-box;font-size:14px"><span style="box-sizing:border-box">0</span></code><span style="font-size:1em;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"">,</span><span style="font-size:1em;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol""> </span><code style="color:rgb(51,51,51);box-sizing:border-box;font-size:14px"><span style="box-sizing:border-box">mpi.mod</span></code><span style="font-size:1em;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol""> </span><span style="font-size:1em;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"">will not be visible in use code (via</span><span style="font-size:1em;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol""> </span><code style="color:rgb(51,51,51);box-sizing:border-box;font-size:14px"><span style="box-sizing:border-box">petscsys.mod</span></code><span style="font-size:1em;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"">) - so</span><span style="font-size:1em;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol""> </span><code style="color:rgb(51,51,51);box-sizing:border-box;font-size:14px"><span style="box-sizing:border-box">mpi_f08</span></code><span style="font-size:1em;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol""> </span><span style="font-size:1em;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"">can now be used</span></i></div></div><div><i><span style="font-size:1em;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol""><br></span></i></div><div>Regards,</div><div><br></div><div>Tabrez</div></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">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>