Commit 92a7cff2 authored by Berk Geveci's avatar Berk Geveci
Browse files

FIX: Ports now communicate maximum num. of pieces.

parent 7a76c042
......@@ -325,6 +325,11 @@ void vtkInputPort::UpdateInformation()
this->Controller->Receive( &pmt, 1,
this->RemoteProcessId,
vtkInputPort::INFORMATION_TRANSFER_TAG);
int maxNumPieces;
this->Controller->Receive( &maxNumPieces, 1,
this->RemoteProcessId,
vtkInputPort::INFORMATION_TRANSFER_TAG);
output->SetMaximumNumberOfPieces(maxNumPieces);
output->SetWholeExtent( wholeInformation );
......
......@@ -146,6 +146,10 @@ void vtkOutputPort::TriggerUpdateInformation(int remoteProcessId)
this->Controller->Send( &mtime, 1,
remoteProcessId, vtkInputPort::INFORMATION_TRANSFER_TAG );
int maxNumPieces = input->GetMaximumNumberOfPieces();
this->Controller->Send( &maxNumPieces, 1,
remoteProcessId, vtkInputPort::INFORMATION_TRANSFER_TAG );
}
......
Supports Markdown
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