| 353 | |
| 354 | |
| 355 | int Foam::UPstream::baseProcNo(const label myComm, const int myProcID) |
| 356 | { |
| 357 | int procID = myProcID; |
| 358 | label comm = myComm; |
| 359 | |
| 360 | while (parent(comm) != -1) |
| 361 | { |
| 362 | const List<int>& parentRanks = UPstream::procID(comm); |
| 363 | procID = parentRanks[procID]; |
| 364 | comm = UPstream::parent(comm); |
| 365 | } |
| 366 | |
| 367 | return procID; |
| 368 | } |
| 369 | |
| 370 | |
| 371 | Foam::label Foam::UPstream::procNo(const label myComm, const int baseProcID) |