Commit e330b535 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

Fixed bug in previous commit for BUG #12527.

The reader was skipping reading unstructured grid even in the case where there
were multiple grids under the top-most grid. Fixed that.
parent c5c8fdee
...@@ -436,7 +436,13 @@ vtkDataObject* vtkXdmfHeavyData::ReadUnstructuredGrid(XdmfGrid* xmfGrid) ...@@ -436,7 +436,13 @@ vtkDataObject* vtkXdmfHeavyData::ReadUnstructuredGrid(XdmfGrid* xmfGrid)
{ {
vtkSmartPointer<vtkUnstructuredGrid> ugData = vtkSmartPointer<vtkUnstructuredGrid> ugData =
vtkSmartPointer<vtkUnstructuredGrid>::New(); vtkSmartPointer<vtkUnstructuredGrid>::New();
if (this->Domain->GetNumberOfGrids() == 1 && this->Piece != 0)
// BUG #12527. For non-partitioned data, don't read unstructured grid on
// process id > 0.
if (this->Piece != 0 &&
this->Domain->GetNumberOfGrids() == 1 &&
this->Domain->GetVTKDataType() == VTK_UNSTRUCTURED_GRID &&
this->Domain->GetSetsSelection()->GetNumberOfArrays() == 0)
{ {
ugData->Register(NULL); ugData->Register(NULL);
return ugData; return ugData;
......
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