MPI_IN_PLACE is defined in both mpif.h and the "mpi" Fortran module.

Does the subroutine in question have "include mpif.h" or "use mpi"?


On Aug 16, 2010, at 3:55 PM, Richard Walsh wrote:

> 
> All,
> 
> I have a fortran code (Octopus 3.2) that is bombing during a build in a 
> routine that uses:
> 
> call MPI_Allreduce(MPI_IN_PLACE, rho(1, ispin), np, MPI_DOUBLE_PRECISION, 
> MPI_SUM, st%mpi_grp%comm, mpi_err)
> 
> with the error message:
> 
> states.F90(1240): error #6404: This name does not have a type, and must have 
> an explicit type.   [MPI_IN_PLACE]
>        call MPI_Allreduce(MPI_IN_PLACE, rho(1, ispin), np, 
> MPI_DOUBLE_PRECISION, MPI_SUM, st%mpi_grp%comm, mpi_err)
> ---------------------------^
> compilation aborted for states_oct.f90 (code 1)
> 
> This suggests that MPI_IN_PLACE is missing from the mpi.h header.
> 
> Any thoughts?
> 
> rbw
> 
> Richard Walsh
> Parallel Applications and Systems Manager
> CUNY HPC Center, Staten Island, NY
> 718-982-3319
> 612-382-4620
> 
> Reason does give the heart pause;
> As the heart gives reason fits.
> 
> Yet, to live where reason always rules;
> Is to kill one's heart with wits.
> ________________________________________
> From: users-boun...@open-mpi.org [users-boun...@open-mpi.org] On Behalf Of 
> Gokhan Kir [g...@iastate.edu]
> Sent: Monday, August 16, 2010 5:43 PM
> To: us...@open-mpi.org
> Subject: [OMPI users] A Problem with RAxML
> 
> Hi,
> I am currently using RAxML 7.0, and recently I got a problem. Even though I 
> Googled  it, I couldn't find a satisfying answer.
> I got this message from BATCH_ERRORs file " raxmlHPC-MPI: topologies.c:179: 
> restoreTL: Assertion `n >= 0 && n < rl->max' failed. "
> 
> Any help is appreciated,
> 
> Thanks,
> 
> --
> Gokhan
> 
> Think green before you print this email.
> 
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users


-- 
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/


Reply via email to