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 Wed, 7 Mar 2018, Smith, Barry F. wrote: > > You have multiple > > use xxxx > > 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 <prav...@tifrbng.res.in> wrote: > > > > > > > >> On 07-Mar-2018, at 9:34 PM, Smith, Barry F. <bsm...@mcs.anl.gov> wrote: > >> > >> 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 > > > > Hello Barry > > > > If you mean use of “use mpi”, then I have dont have this anywhere in my > > code. I only include petsc includes and modules. > > > > Thanks > > praveen > >