Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] MPI Problem
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2012-06-25 09:39:02

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
For corporate legal information go to: