| 473 | |
| 474 | bool InCurrentProcess(double* p) { return InBB(p, GetBoundingBox(Rank)); } |
| 475 | int FindNextProcess(double* p) |
| 476 | { |
| 477 | for (int rank = CNext(this->Rank, this->NumProcs); rank != Rank; |
| 478 | rank = CNext(rank, this->NumProcs)) |
| 479 | { |
| 480 | if (InBB(p, GetBoundingBox(rank))) |
| 481 | { |
| 482 | return rank; |
| 483 | } |
| 484 | } |
| 485 | return -1; |
| 486 | } |
| 487 | |
| 488 | private: |
| 489 | ProcessLocator() |
no test coverage detected