------------------------------------------------------------------------------
| 1574 | |
| 1575 | //------------------------------------------------------------------------------ |
| 1576 | void vtkHDFWriter::AppendIterDataObject( |
| 1577 | vtkDataObjectTreeIterator* treeIter, const int& leafIndex, const std::string& uniqueSubTreeName) |
| 1578 | { |
| 1579 | this->PreviousStepMeshMTime = this->CompositeMeshMTime[leafIndex]; |
| 1580 | this->DispatchDataObject( |
| 1581 | this->Impl->OpenExistingGroup(this->Impl->GetRoot(), uniqueSubTreeName.c_str()), |
| 1582 | treeIter->GetCurrentDataObject()); |
| 1583 | auto ds = vtkDataSet::SafeDownCast(treeIter->GetCurrentDataObject()); |
| 1584 | auto pds = vtkPartitionedDataSet::SafeDownCast(treeIter->GetCurrentDataObject()); |
| 1585 | if (ds) |
| 1586 | { |
| 1587 | this->CompositeMeshMTime[leafIndex] = ds->GetMeshMTime(); |
| 1588 | } |
| 1589 | else if (pds && pds->GetNumberOfPartitions() > 0) |
| 1590 | { |
| 1591 | this->CompositeMeshMTime[leafIndex] = |
| 1592 | vtkDataSet::SafeDownCast(pds->GetPartition(0))->GetMeshMTime(); |
| 1593 | } |
| 1594 | else |
| 1595 | { |
| 1596 | this->CompositeMeshMTime[leafIndex] = this->CurrentTimeIndex + 1; |
| 1597 | } |
| 1598 | } |
| 1599 | |
| 1600 | //------------------------------------------------------------------------------ |
| 1601 | void vtkHDFWriter::AppendCompositeSubfilesDataObject(const std::string& uniqueSubTreeName) |
no test coverage detected