NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

Re: [netcdfgroup] OpenMPI MPI_COMM_WORLD

David Robertson <robertson@xxxxxxxxxxxxxxxxxx> writes:

> Hi,
>
> I am having a problem with OpenMPI and NetCDF4 Fortran 90 parallel IO.
> I'm fairly certain the problem is with NetCDF and not HDF5 because 'make
> check' for HDF5 tests the C AND Fortran 90 parallel IO and all tests
> pass. I have traced this problem extensively in TotalView and it seems
> to stem from the fact that MPI_COMM_WORLD is zero in the Fortran 90
> interface for OpenMPI. In contrast, MPICH2 Fortran 90 interface sets
> MPI_COMM_WORLD to 1140850688.
>

David,

How are you specifying MPI_COMM_WORLD? Are you defining your own
constant?

In my case I find a fortran header file called mpif.h, which I include
in my fortran program to get a definition for MPI_COMM_WORLD...

Ed
--
Ed Hartnett  -- ed@xxxxxxxxxxxxxxxx