mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: avoid blocking on redistributePar (continuation of #2027)
- adjust sync condition (continuation of 201f117f5f)
This commit is contained in:
@ -542,7 +542,7 @@ Foam::fileOperation::lookupAndCacheProcessorsPath
|
||||
<< " detected:" << procDirs << endl;
|
||||
}
|
||||
|
||||
if (Pstream::parRun())
|
||||
if (Pstream::parRun() && (!distributed() || syncPar))
|
||||
{
|
||||
reduce(procDirsStatus, bitOrOp<unsigned>()); // worldComm
|
||||
|
||||
@ -612,11 +612,9 @@ Foam::fileOperation::lookupAndCacheProcessorsPath
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (!Pstream::parRun())
|
||||
{
|
||||
// Serial
|
||||
// If (as a side effect) we found the number of decompositions
|
||||
// use it
|
||||
// Serial: use the number of decompositions (if found)
|
||||
if (nProcs)
|
||||
{
|
||||
const_cast<fileOperation&>(*this).setNProcs(nProcs);
|
||||
|
||||
Reference in New Issue
Block a user