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

Method TaskManager

Filters/ParallelFlowPaths/vtkPStreamTracer.cxx:983–1001  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

981 };
982
983 TaskManager(ProcessLocator* locator, PStreamTracerPoint* proto)
984 : Locator(locator)
985 , Proto(proto)
986 {
987 this->Controller = nullptr;
988 this->SetController(
989 vtkMPIController::SafeDownCast(vtkMultiProcessController::GetGlobalController()));
990 AssertNe(this->Controller, nullptr);
991 this->NumProcs = this->Controller->GetNumberOfProcesses();
992 this->Rank = this->Controller->GetLocalProcessId();
993
994 int prototypeSize = Proto == nullptr ? 0 : Proto->GetSize();
995 this->MessageSize = prototypeSize + sizeof(Task);
996 this->ReceiveBuffer = nullptr;
997
998 this->NumSends = 0;
999 this->Timer = vtkSmartPointer<vtkTimerLog>::New();
1000 this->ReceiveTime = 0;
1001 }
1002
1003 void Initialize(bool hasData, const PStreamTracerPointArray& seeds, int MaxId)
1004 {

Callers

nothing calls this directly

Calls 5

SetControllerMethod · 0.95
GetNumberOfProcessesMethod · 0.80
NewFunction · 0.50
GetLocalProcessIdMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected