Skip to content
Snippets Groups Projects
Commit a5e6d3d4 authored by Tristan Coulange's avatar Tristan Coulange
Browse files

BUG: fix xdmf test failure

A test failure was introduced by the commit "BUG: fix some xdmf writer crashes".
This new patch reverts the change which caused the failure.

Change-Id: Ifbb3a68b14f0c5a5cd390fc68d9a50668ca60ac8
parent 748cf79d
No related branches found
No related tags found
No related merge requests found
......@@ -472,11 +472,9 @@ int vtkXdmfWriter::WriteCompositeDataSet(vtkCompositeDataSet *dobj, XdmfGrid *gr
{
XdmfGrid *childsGrid = new XdmfGrid();
childsGrid->SetDeleteOnGridDelete(true);
grid->Insert(childsGrid);
vtkDataObject* ds = iter->GetCurrentDataObject();
if (this->WriteDataSet(ds, childsGrid))
{
grid->Insert(childsGrid);
}
this->WriteDataSet(ds, childsGrid);
//delete childsGrid; //parent deletes children in Xdmf
iter->GoToNextItem();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment