mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: correct the selfComm procNo relative to world communicator
STYLE: qualify worldComm as UPstream instead Pstream STYLE: PPCG::gSumMagProd() as static function
This commit is contained in:
@ -89,7 +89,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
Info<< nl
|
||||
<< "parallel:" << UPstream::parRun()
|
||||
<< "nProcs = " << UPstream::nProcs()
|
||||
<< " nProcs = " << UPstream::nProcs()
|
||||
<< " with " << UPstream::nComms() << " predefined comm(s)."
|
||||
<< " proc:" << UPstream::myProcNo() << nl;
|
||||
|
||||
@ -103,11 +103,14 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
Info<< nl;
|
||||
|
||||
//- Process IDs within a given communicator
|
||||
Info<< "procIDs: "
|
||||
<< flatOutput(UPstream::procID(UPstream::commWorld())) << endl;
|
||||
|
||||
rankInfo(UPstream::commWorld());
|
||||
// Process IDs within a given communicator
|
||||
for (label comm = 0; comm < UPstream::nComms(); ++comm)
|
||||
{
|
||||
Info<< "comm=" << comm
|
||||
<< " procIDs: " << flatOutput(UPstream::procID(comm)) << endl;
|
||||
rankInfo(comm);
|
||||
Pout<< nl;
|
||||
}
|
||||
Pout<< endl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user