Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] mpirun error with " The MPI_Comm_f2c() function was called before MPI_INIT was invoked."
From: Ralph Castain (rhc_at_[hidden])
Date: 2012-05-13 09:53:19


I believe the error message is pretty clear, actually - your program needs to call MPI_INIT -before- it calls any MPI function.

On May 13, 2012, at 6:37 AM, Dongshan Wei wrote:

> Hi All,
>
> I encountered a question about openmpi running. I have compiled
> successfully a paralle VASP program with openmpi 1.4.2. But when I run
> the compiled program with mpirun, I got the following information at
> very beginning:
>
> *** The MPI_Comm_f2c() function was called before MPI_INIT was invoked.
> *** This is disallowed by the MPI standard.
> *** Your MPI job will now abort.
>
> I believe this error will not related to the VASP program, but only to
> openmpi. But I don't how to handle. Does anybody give some solution?
>
> Thanks in advance!
>
> Dongshan
>
> --
> ---------------------------------------------------------
> Dongshan Wei, Dr.
> Chongqing Institute of Green and Intelligent Technology, CAS
> 85 Jinyu Ave, Yubei Area, Chongqing 401120, China
> Email: dswei_at_[hidden]
> Phone: (+86) 23-63063762
> ---------------------------------------------------------
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users