------------------------------------------------------------------------------
| 614 | |
| 615 | //------------------------------------------------------------------------------ |
| 616 | void vtkDIYUtilities::Link( |
| 617 | diy::Master& master, const diy::Assigner& assigner, const std::vector<std::set<int>>& linksMap) |
| 618 | { |
| 619 | for (int localId = 0; localId < static_cast<int>(linksMap.size()); ++localId) |
| 620 | { |
| 621 | const auto& links = linksMap[localId]; |
| 622 | auto l = new diy::Link(); |
| 623 | for (const auto& nid : links) |
| 624 | { |
| 625 | l->add_neighbor(diy::BlockID(nid, assigner.rank(nid))); |
| 626 | } |
| 627 | master.replace_link(localId, l); |
| 628 | } |
| 629 | } |
| 630 | |
| 631 | //------------------------------------------------------------------------------ |
| 632 | void vtkDIYUtilities::PrintSelf(ostream& os, vtkIndent indent) |
nothing calls this directly
no test coverage detected