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

Tabrez Ali tabrezali at gmail.com
Fri Dec 17 18:16:26 CST 2021


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)
Error: Symbol ‘mpi_comm_world’ at (1) has no IMPLICIT type

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*


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20211217/61ba75f9/attachment-0001.html>

More information about the petsc-users mailing list