[petsc-users] --with-mpi=0
Satish Balay
balay at mcs.anl.gov
Sat Dec 18 10:04:07 CST 2021
Ah - you need 'use petscmpi'
For example: ksp/ksp/tutorials/ex44f.F90
Satish
On Sat, 18 Dec 2021, Matthew Knepley wrote:
> 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?
>
> Thanks,
>
> Matt
>
>
> > 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
> >
>
>
>
More information about the petsc-users
mailing list