mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: multi-region support for reconstructParMesh (#2072)
This commit is contained in:
@ -71,7 +71,6 @@ int main(int argc, char *argv[])
|
||||
#include "setRootCase.H"
|
||||
|
||||
const auto decompFile = args.get<fileName>(1);
|
||||
const bool region = args.found("region");
|
||||
const bool verbose = args.found("verbose");
|
||||
|
||||
// Set time from database
|
||||
@ -87,23 +86,17 @@ int main(int argc, char *argv[])
|
||||
// Get region names
|
||||
#include "getAllRegionOptions.H"
|
||||
|
||||
wordList regionDirs(regionNames);
|
||||
if (regionDirs.size() == 1 && regionDirs[0] == polyMesh::defaultRegion)
|
||||
{
|
||||
regionDirs[0].clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
Info<< "Decomposing regions: "
|
||||
<< flatOutput(regionNames) << nl << endl;
|
||||
}
|
||||
|
||||
labelList cellToProc;
|
||||
|
||||
forAll(regionNames, regioni)
|
||||
{
|
||||
const word& regionName = regionNames[regioni];
|
||||
const word& regionDir = regionDirs[regioni];
|
||||
// const word& regionDir =
|
||||
// (
|
||||
// regionName != polyMesh::defaultRegion
|
||||
// ? regionName
|
||||
// : word::null
|
||||
// );
|
||||
|
||||
Info<< "\n\nDecomposing mesh " << regionName << nl << endl;
|
||||
Info<< "Create mesh..." << flush;
|
||||
|
||||
Reference in New Issue
Block a user