mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated handling of master in fvOption
This commit is contained in:
@ -88,7 +88,6 @@ void Foam::fv::option::setSelection(const dictionary& dict)
|
|||||||
case smMapRegion:
|
case smMapRegion:
|
||||||
{
|
{
|
||||||
dict.lookup("nbrRegionName") >> nbrRegionName_;
|
dict.lookup("nbrRegionName") >> nbrRegionName_;
|
||||||
master_ = readBool(dict.lookup("master"));
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case smAll:
|
case smAll:
|
||||||
@ -250,7 +249,8 @@ Foam::fv::option::option
|
|||||||
const word& name,
|
const word& name,
|
||||||
const word& modelType,
|
const word& modelType,
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const fvMesh& mesh
|
const fvMesh& mesh,
|
||||||
|
const bool master
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
name_(name),
|
name_(name),
|
||||||
@ -265,7 +265,7 @@ Foam::fv::option::option
|
|||||||
V_(0.0),
|
V_(0.0),
|
||||||
meshInterpPtr_(),
|
meshInterpPtr_(),
|
||||||
nbrRegionName_("none"),
|
nbrRegionName_("none"),
|
||||||
master_(false),
|
master_(master),
|
||||||
fieldNames_(),
|
fieldNames_(),
|
||||||
applied_()
|
applied_()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -191,7 +191,8 @@ public:
|
|||||||
const word& name,
|
const word& name,
|
||||||
const word& modelType,
|
const word& modelType,
|
||||||
const dictionary& dict,
|
const dictionary& dict,
|
||||||
const fvMesh& mesh
|
const fvMesh& mesh,
|
||||||
|
const bool master = false
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Return clone
|
//- Return clone
|
||||||
|
|||||||
Reference in New Issue
Block a user