ENH: redistributePar: update for distribute mode

- uses read&write handlers
- fixes initialisation of partial handlers
- 'uniform' copied to wrong place
- -overwrite not deleting old processors dirs
This commit is contained in:
mattijs
2023-10-04 17:15:12 +01:00
committed by Andrew Heather
parent af267e0c1b
commit 9ed0bb1e4f
10 changed files with 141 additions and 86 deletions

View File

@ -162,9 +162,8 @@ Foam::boolList Foam::haveMeshFile
handler.filePath(runTime.path()/meshPath/meshFile)
);
bool found = (!fName.empty() && handler.isFile(fName));
if (found)
bool found = handler.isFile(fName);
if (returnReduceAnd(found)) // worldComm
{
autoPtr<ISstream> isPtr(fileHandler().NewIFstream(fName));
if (isPtr && isPtr->good())