Commit 71ab7e7b authored by Berk Geveci's avatar Berk Geveci Committed by Kitware Robot

Merge topic 'plot3d-parallel-2D-fix'

f4126e3a Fixed bug with loading 2D or ASCII datasets in parallel.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Utkarsh Ayachit's avatarUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Merge-request: !434
parents 8b3acf1a f4126e3a
......@@ -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