[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #ZRE-532176]: NetCDF definitions break compilation in MPI environment

> I found this in my netcdf.h from my install of NetCDF-4.1.1:
> /* These defs added by netCDF configure because parallel HDF5 is not present.
> */
> #ifndef MPI_INCLUDED
> #define MPI_Comm int
> #define MPI_Info int
> #define MPI_COMM_WORLD 0
> #define MPI_INFO_NULL 0
> #endif
> This of course breaks compilation in any program that includes mpi.h.
> Not all (parallel) programs that must read NetCDF files use the HDF5
> backend.
> These should not be publicly visible definitions.  Please remove them
> from header files that user programs are supposed to utilize for the
> next release.
> -tom

Howdy Tom!

Yes, I have done as you suggested. Perhaps you could check the daily snapshot 
to see if it works for you:



Ticket Details
Ticket ID: ZRE-532176
Department: Support netCDF
Priority: High
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.