[petsc-users] --with-mpi=0

Matthew Knepley knepley at gmail.com
Sat Dec 18 09:37:54 CST 2021

On Sat, Dec 18, 2021 at 9:26 AM Tabrez Ali <tabrezali at gmail.com> wrote:

> Hi,
> 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:
>    call MPI_Comm_rank(MPI_COMM_WORLD,rank,ierr)
>                                          1
> Error: Symbol ‘mpi_comm_world’ at (1) has no IMPLICIT type

Hi Tabrez,

The definition of MPI_COMM_WORLD is in mpif.h. Are you #including that?



> There are no issues with PETSc 3.14 or prior versions. Any ideas as to
> what could be wrong?
> I do see the following note (below) in
> https://petsc.org/main/docs/changes/315/ but I am not sure if it's
> related:
> *Add configure option --with-mpi-f90module-visibility [default=``1``].
> With 0, mpi.mod will not be visible in use code (via petscsys.mod) -
> so mpi_f08 can now be used*
> Regards,
> Tabrez

What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20211218/9311fc9b/attachment.html>

More information about the petsc-users mailing list