MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / baseProcNo

Function baseProcNo

src/OpenFOAM/db/IOstreams/Pstreams/UPstream.C:355–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353
354
355int 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
371Foam::label Foam::UPstream::procNo(const label myComm, const int baseProcID)

Callers 1

UPstream.CFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected