Commit 94ea2201 authored by Dave Demarle's avatar Dave Demarle
Browse files

BUG: Fix what appears to be an error regarding switch from old code that used...

BUG: Fix what appears to be an error regarding switch from old code that used levels as the group id, to the new code which uses level to determine the dataset within the group. In any case this change lets you load the other sample data sets in paraviewdata without crashing.
parent af92b6c8
......@@ -86,7 +86,7 @@
#define USE_IMAGE_DATA // otherwise uniformgrid
vtkStandardNewMacro(vtkXdmfReader);
vtkCxxRevisionMacro(vtkXdmfReader, "1.18");
vtkCxxRevisionMacro(vtkXdmfReader, "1.19");
vtkCxxSetObjectMacro(vtkXdmfReader,Controller,vtkMultiProcessController);
......@@ -863,7 +863,8 @@ int vtkXdmfReaderInternal::RequestActualGridData(
#else
vtkUniformGrid *ds=vtkUniformGrid::New();
#endif
mgd->SetDataSet(level,index,ds);
//mgd->SetDataSet(level,index,ds);
mgd->SetDataSet(outputGrid,index,ds);
ds->Delete();
}
else if (
......@@ -871,7 +872,8 @@ int vtkXdmfReaderInternal::RequestActualGridData(
xdmfGrid->GetTopology()->GetTopologyType() == XDMF_3DRECTMESH )
{
vtkRectilinearGrid *ds=vtkRectilinearGrid::New();
mgd->SetDataSet(level,index,ds);
//mgd->SetDataSet(level,index,ds);
mgd->SetDataSet(outputGrid,index,ds);
ds->Delete();
}
else
......
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