Commit f8269b27 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Fixed mismatched mpi-broadcast in parallel with multi-clients.

parent 6b147eef
......@@ -747,13 +747,14 @@ void vtkPVRenderView::SynchronizeForCollaboration()
else
{
vtkMultiProcessStream stream;
if (r_controller && r_controller->Receive(stream, 1, 42000))
if (r_controller)
{
r_controller->Receive(stream, 1, 42000);
}
if (p_controller)
{
p_controller->Broadcast(stream, 0);
}
int arg1, arg2, arg3, arg4;
stream >> arg1
>> arg2
......@@ -766,7 +767,6 @@ void vtkPVRenderView::SynchronizeForCollaboration()
this->UseDistributedRenderingForInteractiveRender = (arg3 == 1);
this->UseOutlineForInteractiveRender = (arg4 == 1);
}
}
}
//----------------------------------------------------------------------------
......
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