One gets such a error message if mpif.h is used in multiple modules.
mpi.mod [if used] is one module that will have this symbol. And if
there is a user module [or petsc module] also using mpif.h - then it
will get a duplicate copy of these symbols - and will result in such a
conflict.
Satish
> On 07-Mar-2018, at 9:52 PM, Smith, Barry F. wrote:
>
> You have multiple
>
>use
>
>make sure they don't have multiple paths back to MPI. For example if two
> of them have use petscsys etc
>
> Barry
None of the other modules I include have “use
You have multiple
use
make sure they don't have multiple paths back to MPI. For example if two of
them have use petscsys etc
Barry
> On Mar 7, 2018, at 10:11 AM, Praveen C wrote:
>
>
>
>> On 07-Mar-2018, at 9:34 PM, Smith, Barry F.
Start with one use statement and slowly add more. My guess is multiple ones
of those modules use the MPI module hence MPI_SUM appears through multiple
paths.
Barry
> On Mar 7, 2018, at 8:53 AM, Praveen C wrote:
>
> Dear all
>
> In a code like this
>
> subroutine
Hi Praveen,
did you try to include the PETSC_AVOID_MPIF_H? I mean, include:
-DPETSC_AVOID_MPIF_H=1 when using mpiifort and I think that the problem
will be solved.
2018-03-07 15:53 GMT+01:00 Praveen C :
> Dear all
>
> In a code like this
>
> subroutine checkgrid(g)
>
>