MCPcopy Create free account
hub / github.com/Kitware/VTK / PrintParentChildInfo

Method PrintParentChildInfo

Common/DataModel/vtkOverlappingAMRMetaData.cxx:571–595  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

569
570//------------------------------------------------------------------------------
571void vtkOverlappingAMRMetaData::PrintParentChildInfo(unsigned int level, unsigned int index)
572{
573 if (!this->HasChildrenInformation())
574 {
575 this->GenerateParentChildInformation();
576 }
577
578 unsigned int *ptr, i, numParents;
579 std::cerr << "Parent Child Info for block " << index << " of Level: " << level << endl;
580 ptr = this->GetParents(level, index, numParents);
581 std::cerr << " Parents: ";
582 for (i = 0; i < numParents; i++)
583 {
584 std::cerr << ptr[i] << " ";
585 }
586 std::cerr << endl;
587 std::cerr << " Children: ";
588 unsigned int numChildren;
589 ptr = this->GetChildren(level, index, numChildren);
590 for (i = 0; i < numChildren; i++)
591 {
592 std::cerr << ptr[i] << " ";
593 }
594 std::cerr << endl;
595}
596
597//------------------------------------------------------------------------------
598void vtkOverlappingAMRMetaData::GenerateParentChildInformation()

Callers 1

PrintSelfMethod · 0.95

Calls 4

GetParentsMethod · 0.95
GetChildrenMethod · 0.95

Tested by

no test coverage detected