Commit f8269b27 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

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

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