Commit 90c75725 authored by berenger-bramas's avatar berenger-bramas
Browse files

Made a misstake in the MPI IO, I was using a view instead of a seek for a read operation.

(View is only for writing operation).

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@186 2616d619-271b-44dc-8df4-d4a8f33a7222
parent 3ed2cc61
......@@ -94,8 +94,8 @@ public:
const int bufsize = nbParticles * 4;
// local number to read
particles = new FReal[bufsize];
MPI_File_set_view(file, headDataOffSet + startPart * 4 * sizeof(FReal), MPI_FLOAT, MPI_FLOAT, const_cast<char*>("native"), MPI_INFO_NULL);
MPI_File_read(file, particles, bufsize, MPI_FLOAT, &status);
MPI_File_read_at(file, headDataOffSet + startPart * 4 * sizeof(FReal), particles, bufsize, MPI_FLOAT, &status);
// check if needed
int count(0);
......
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