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

Barry Smith bsmith at petsc.dev
Sat Dec 18 14:49:15 CST 2021


  Urg, this is pretty horrible. petscmpi?  Why can't MPIUNI provide this as "standard" MPI modules?



> On Dec 18, 2021, at 11:04 AM, Satish Balay via petsc-users <petsc-users 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
>>> 
>> 
>> 
>> 



More information about the petsc-users mailing list