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

Method Link

Parallel/DIY/vtkDIYUtilities.cxx:616–629  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

614
615//------------------------------------------------------------------------------
616void 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//------------------------------------------------------------------------------
632void vtkDIYUtilities::PrintSelf(ostream& os, vtkIndent indent)

Callers

nothing calls this directly

Calls 5

BlockIDClass · 0.85
add_neighborMethod · 0.80
replace_linkMethod · 0.80
sizeMethod · 0.45
rankMethod · 0.45

Tested by

no test coverage detected