From: Jeff Squyres <jsquyres@cisco.com>
To: Mohamad Ali Rostami <ma.rostami@yahoo.com>; Open MPI Users <users@open-mpi.org>
Sent: Monday, June 25, 2012 3:39 PM
Subject: Re: [OMPI users] MPI Problem
On Jun 25, 2012, at 4:07 AM, Mohamad Ali Rostami wrote:
> I have an error since a week ago which it makes me crazy. :P
> I have a OpenMP parallelized fortran (f90) program which I am going to parallelize some part of it, using MPI (OpenMPI).
> When I want to compile the code with my new MPI code, I get this problem:
> "Error: There is no specific subroutine for the generic 'mpi_init'", while the compilation has no problem
> with the header "use mpi" and even it seems that it does not have any problems with the variables and parameters from
> MPI and the problem is just with subroutines.
This *usually* means that you are calling the subroutine incorrectly (MPI_Init, in this case). The prototype for MPI_Init is:
subroutine MPI_Init(ierr)
integer, intent(out) :: ierr
end subroutine MPI_Init
Are you passing a writable integer parameter?
--
Jeff Squyres
jsquyres@cisco.comFor corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/