Eugene Loh wrote:
> It would help if you would include the error messages you encounter.
> You need to call MPI_Init(ierr) before you can call (just about) any
> other MPI call. E.g., add "call MPI_Init(ierr)" as the first
> executable statement of your "program prog".
> The error I get with your program is
> *** An error occurred in MPI_Comm_f2c
> *** before MPI was initialized
> *** MPI_ERRORS_ARE_FATAL (your MPI job will now abort)
> I suppose that message could be clearer.
I filed a request for a "minor enhancement". See