Commit d2399f89 authored by Alexander Danilov's avatar Alexander Danilov
Browse files

Fix Matrix::Save() and Vector::Save()

Fixed MPI_Gather* api with sequential write
parent f68a56a2
......@@ -998,7 +998,7 @@ namespace INMOST
recvdata.resize(totsize);
}
else recvdata.resize(1); //protect from dereferencing null
MPI_Gatherv(&senddata[0],sendsize,MPI_CHAR,&recvdata[0],&recvsize[0],&displ[0],MPI_INT,0,GetCommunicator());
MPI_Gatherv(&senddata[0],sendsize,MPI_CHAR,&recvdata[0],&recvsize[0],&displ[0],MPI_CHAR,0,GetCommunicator());
if( rank == 0 )
{
std::fstream output(file.c_str(),std::ios::out);
......@@ -1083,7 +1083,7 @@ namespace INMOST
recvdata.resize(totsize);
}
else recvdata.resize(1); //protect from dereferencing null
MPI_Gatherv(&senddata[0],sendsize,MPI_CHAR,&recvdata[0],&recvsize[0],&displ[0],MPI_INT,0,GetCommunicator());
MPI_Gatherv(&senddata[0],sendsize,MPI_CHAR,&recvdata[0],&recvsize[0],&displ[0],MPI_CHAR,0,GetCommunicator());
if( rank == 0 )
{
std::fstream output(file.c_str(),std::ios::out);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment