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

Method AddProcessRegions

Filters/Parallel/vtkPKdTree.cxx:2978–2993  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2976 return 0;
2977}
2978void vtkPKdTree::AddProcessRegions(int procId, vtkKdNode* kd)
2979{
2980 vtkIntArray* leafNodeIds = vtkIntArray::New();
2981
2982 vtkKdTree::GetLeafNodeIds(kd, leafNodeIds);
2983
2984 int nLeafNodes = leafNodeIds->GetNumberOfTuples();
2985
2986 for (int n = 0; n < nLeafNodes; n++)
2987 {
2988 this->RegionAssignmentMap[leafNodeIds->GetValue(n)] = procId;
2989 this->NumRegionsAssigned[procId]++;
2990 }
2991
2992 leafNodeIds->Delete();
2993}
2994int vtkPKdTree::AssignRegionsContiguous()
2995{
2996 int p;

Callers 1

Calls 4

DeleteMethod · 0.65
NewFunction · 0.50
GetNumberOfTuplesMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected