diff --git a/src/fvOptions/fvOptions/fvOption.C b/src/fvOptions/fvOptions/fvOption.C index 390ef12bc8..8cb72b8e99 100644 --- a/src/fvOptions/fvOptions/fvOption.C +++ b/src/fvOptions/fvOptions/fvOption.C @@ -88,7 +88,6 @@ void Foam::fv::option::setSelection(const dictionary& dict) case smMapRegion: { dict.lookup("nbrRegionName") >> nbrRegionName_; - master_ = readBool(dict.lookup("master")); break; } case smAll: @@ -250,7 +249,8 @@ Foam::fv::option::option const word& name, const word& modelType, const dictionary& dict, - const fvMesh& mesh + const fvMesh& mesh, + const bool master ) : name_(name), @@ -265,7 +265,7 @@ Foam::fv::option::option V_(0.0), meshInterpPtr_(), nbrRegionName_("none"), - master_(false), + master_(master), fieldNames_(), applied_() { diff --git a/src/fvOptions/fvOptions/fvOption.H b/src/fvOptions/fvOptions/fvOption.H index 657f760233..28509ee4c0 100644 --- a/src/fvOptions/fvOptions/fvOption.H +++ b/src/fvOptions/fvOptions/fvOption.H @@ -191,7 +191,8 @@ public: const word& name, const word& modelType, const dictionary& dict, - const fvMesh& mesh + const fvMesh& mesh, + const bool master = false ); //- Return clone