<div dir="ltr"><div>Thanks!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 18, 2021 at 11:04 AM Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Ah - you need 'use petscmpi'<br>
<br>
For example: ksp/ksp/tutorials/ex44f.F90<br>
<br>
Satish<br>
<br>
On Sat, 18 Dec 2021, Matthew Knepley wrote:<br>
<br>
> On Sat, Dec 18, 2021 at 9:26 AM Tabrez Ali <<a href="mailto:tabrezali@gmail.com" target="_blank">tabrezali@gmail.com</a>> wrote:<br>
> <br>
> > Hi,<br>
> ><br>
> > I am trying to compile Fortran code with PETSc 3.16 built without MPI,<br>
> > i.e., --with-mpi=0, and am getting the following error:<br>
> ><br>
> >    call MPI_Comm_rank(MPI_COMM_WORLD,rank,ierr)<br>
> >                                          1<br>
> > Error: Symbol ‘mpi_comm_world’ at (1) has no IMPLICIT type<br>
> ><br>
> <br>
> Hi Tabrez,<br>
> <br>
> The definition of MPI_COMM_WORLD is in mpif.h. Are you #including that?<br>
> <br>
>   Thanks,<br>
> <br>
>     Matt<br>
> <br>
> <br>
> > There are no issues with PETSc 3.14 or prior versions. Any ideas as to<br>
> > what could be wrong?<br>
> ><br>
> > I do see the following note (below) in<br>
> > <a href="https://petsc.org/main/docs/changes/315/" rel="noreferrer" target="_blank">https://petsc.org/main/docs/changes/315/</a> but I am not sure if it's<br>
> > related:<br>
> ><br>
> > *Add configure option --with-mpi-f90module-visibility [default=``1``].<br>
> > With 0, mpi.mod will not be visible in use code (via petscsys.mod) -<br>
> > so mpi_f08 can now be used*<br>
> ><br>
> > Regards,<br>
> ><br>
> > Tabrez<br>
> ><br>
> <br>
> <br>
> <br>
</blockquote></div></div>