parallel netcdf - first experiences

Rajeev Thakur thakur at mcs.anl.gov
Mon Jul 28 11:04:58 CDT 2003


> > When trying to create the test cases I recognized that
> mpinetcdf.c tries
> > to call  MPI_Type_create_vector which I guess is not part of the MPI2
> > standard. Are there any plans to to add this function to the MPI2 in
> > future? I also could not find this function in the mpich-1.2.5 release.
> > Comments are welcome.
>
> I'm going to defer to someone more familiar with the differnce between
> MPI-1 and MPI-2.. We *should* be using the MPI_VERSION macro to call the
> right type function, like this:
>
> #if (MPI_VERSION < 2)
>             MPI_Type_vector(subcount[0], varp->xsz, ncp->recsize,
>                             MPI_BYTE, &filetype);
> #else
>             MPI_Type_create_vector(subcount[0], varp->xsz, ncp->recsize,
>                                     MPI_BYTE, &filetype);
> #endif

There isn't a function called MPI_Type_create_vector in MPI. There is a
type_create_hvector and a type_vector.

Rajeev




More information about the parallel-netcdf mailing list