| 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 | { |
nothing calls this directly
no test coverage detected