decomposePar: Added "-dict" option

to specify an alternative name and/or location for the decomposition dictionary.

Based on patch contributed by Niklas Nordin, Scania.
This commit is contained in:
Henry Weller
2017-05-03 10:35:08 +01:00
parent 8514ff55d0
commit a41f84e925
5 changed files with 62 additions and 21 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -94,10 +94,10 @@ void Foam::domainDecomposition::addInterProcFace
}
void Foam::domainDecomposition::decomposeMesh()
void Foam::domainDecomposition::decomposeMesh(const fileName& dict)
{
// Decide which cell goes to which processor
distributeCells();
distributeCells(dict);
// Distribute the cells according to the given processor label