mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Name conflict when using mpi see NCF-317
This commit is contained in:
parent
31d15ec532
commit
6d22cbb203
@ -103,7 +103,7 @@ NC_check_file_type(const char *path, int use_parallel, void *mpi_info,
|
||||
if (use_parallel)
|
||||
{
|
||||
MPI_File fh;
|
||||
MPI_Status status;
|
||||
MPI_Status mstatus;
|
||||
int retval;
|
||||
MPI_Comm comm = MPI_COMM_WORLD;
|
||||
MPI_Info info = MPI_INFO_NULL;
|
||||
@ -116,7 +116,7 @@ NC_check_file_type(const char *path, int use_parallel, void *mpi_info,
|
||||
&fh)) != MPI_SUCCESS)
|
||||
{status = NC_EPARINIT; goto done;}
|
||||
if((retval = MPI_File_read(fh, magic, MAGIC_NUMBER_LEN, MPI_CHAR,
|
||||
&status)) != MPI_SUCCESS)
|
||||
&mstatus)) != MPI_SUCCESS)
|
||||
{status = NC_EPARINIT; goto done;}
|
||||
if((retval = MPI_File_close(&fh)) != MPI_SUCCESS)
|
||||
{status = NC_EPARINIT; goto done;}
|
||||
|
Loading…
Reference in New Issue
Block a user