diff --git a/src/fvOptions/fvOptions/fvOption.C b/src/fvOptions/fvOptions/fvOption.C index 390ef12bc848bc78a235a42622de901a7a14f21c..8cb72b8e996b90a89826b037d0781aa5f6b4da5b 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 657f760233d3a51b817953e30afca68e189bf503..28509ee4c0636cb66e86e5a78c353ea5fb65147b 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