Commit 73dfe12c authored by Jerry Clarke's avatar Jerry Clarke
Browse files

Copy UPDATE_EXTENT to child in a temporal collection

parent 42d319b9
......@@ -90,7 +90,7 @@
//----------------------------------------------------------------------------
vtkStandardNewMacro(vtkXdmfReader);
vtkCxxRevisionMacro(vtkXdmfReader, "1.58");
vtkCxxRevisionMacro(vtkXdmfReader, "1.59");
//----------------------------------------------------------------------------
vtkCxxSetObjectMacro(vtkXdmfReader,Controller,vtkMultiProcessController);
......@@ -2021,6 +2021,20 @@ int vtkXdmfReaderInternal::RequestGridData(
++it )
{
if((*it)->TimeIndex == timeIndex){
int hasUpdateExtent, childhasUpdateExtent;
hasUpdateExtent = grid->GetInformation()->Has(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT());
childhasUpdateExtent = (*it)->GetInformation()->Has(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT());
if( hasUpdateExtent && (!childhasUpdateExtent)){
cout << "Copying Update Extents" << endl;
(*it)->GetInformation()->CopyEntry(grid->GetInformation(),
vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT());
(*it)->GetInformation()->CopyEntry(grid->GetInformation(),
vtkStreamingDemandDrivenPipeline::UPDATE_PIECE_NUMBER());
(*it)->GetInformation()->CopyEntry(grid->GetInformation(),
vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_PIECES());
(*it)->GetInformation()->CopyEntry(grid->GetInformation(),
vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_GHOST_LEVELS());
}
return(this->RequestGridData(
(*it),
output,
......
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