Commit f4126e3a authored by Berk Geveci's avatar Berk Geveci
Browse files

Fixed bug with loading 2D or ASCII datasets in parallel.

Had to move the code that broadcasted settings to ranks > 1
because the settings are needed to make a decision about
2D / ASCII parallel code path.
parent 0e589dad
......@@ -1181,7 +1181,11 @@ int vtkMultiBlockPLOT3DReader::RequestData(
int rank = mp->GetLocalProcessId();
int size = mp->GetNumberOfProcesses();
int realSize = rank;
int realSize = size;
int* settings = reinterpret_cast<int*>(&this->Internal->Settings);
mp->Broadcast(settings, sizeof(
vtkMultiBlockPLOT3DReaderInternals::InternalSettings) / sizeof(int), 0);
// Special case where we are reading an ASCII or
// 2D file in parallel. All the work is done by
......@@ -1273,10 +1277,6 @@ int vtkMultiBlockPLOT3DReader::RequestData(
int* rawdims = reinterpret_cast<int*>(&this->Internal->Dimensions[0]);
mp->Broadcast(rawdims, 3*numBlocks, 0);
int* settings = reinterpret_cast<int*>(&this->Internal->Settings);
mp->Broadcast(settings, sizeof(
vtkMultiBlockPLOT3DReaderInternals::InternalSettings) / sizeof(int), 0);
mp->Broadcast(&offset, 1, 0);
// Heavy reading is done collectively. POSIX in this
......
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