[petsc-users] --with-mpi=0
Tabrez Ali
tabrezali at gmail.com
Sat Dec 18 12:00:02 CST 2021
Thanks!
On Sat, Dec 18, 2021 at 11:04 AM Satish Balay <balay at mcs.anl.gov> wrote:
> 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
> > >
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20211218/92f9c345/attachment.html>
More information about the petsc-users
mailing list