BUG: decomposePar - resolved error using -allRegions option

This commit is contained in:
Andrew Heather 2017-09-26 11:58:38 +01:00
parent e48f3d6d52
commit ba331942be

View File

@ -275,6 +275,7 @@ int main(int argc, char *argv[])
#include "setRootCase.H"
bool region = args.optionFound("region");
bool allRegions = args.optionFound("allRegions");
bool writeCellDist = args.optionFound("cellDist");
bool copyZero = args.optionFound("copyZero");
@ -392,7 +393,7 @@ int main(int argc, char *argv[])
Info<< "Using existing processor directories" << nl;
}
if (args.optionFound("region"))
if (region || allRegions)
{
procDirsProblem = false;
forceOverwrite = false;