mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
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:
@ -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
|
||||
@ -69,7 +69,11 @@ void Foam::domainDecomposition::mark
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::domainDecomposition::domainDecomposition(const IOobject& io)
|
||||
Foam::domainDecomposition::domainDecomposition
|
||||
(
|
||||
const IOobject& io,
|
||||
const fileName& dictFile
|
||||
)
|
||||
:
|
||||
fvMesh(io),
|
||||
facesInstancePointsPtr_
|
||||
@ -96,7 +100,8 @@ Foam::domainDecomposition::domainDecomposition(const IOobject& io)
|
||||
(
|
||||
decompositionModel::New
|
||||
(
|
||||
*this
|
||||
*this,
|
||||
dictFile
|
||||
).lookup("numberOfSubdomains")
|
||||
)
|
||||
),
|
||||
@ -115,7 +120,8 @@ Foam::domainDecomposition::domainDecomposition(const IOobject& io)
|
||||
{
|
||||
decompositionModel::New
|
||||
(
|
||||
*this
|
||||
*this,
|
||||
dictFile
|
||||
).readIfPresent("distributed", distributed_);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user