Bugfix: do not read fluxRequired from dictionary

This commit is contained in:
Hrvoje Jasak 2017-02-10 10:00:24 +00:00
parent 6653e9a5d4
commit c373b855ba

View file

@ -166,14 +166,7 @@ Foam::fvSchemes::fvSchemes(const objectRegistry& obr)
laplacianSchemes_.name() + "::default", laplacianSchemes_.name() + "::default",
tokenList() tokenList()
), ),
fluxRequired_ fluxRequired_(), // Do not read flux required option
(
ITstream
(
objectPath() + "::fluxRequired",
tokenList()
)()
),
defaultFluxRequired_(false) defaultFluxRequired_(false)
{ {
if (!headerOk()) if (!headerOk())
@ -386,19 +379,19 @@ bool Foam::fvSchemes::read()
} }
if (dict.found("fluxRequired")) // if (dict.found("fluxRequired"))
{ // {
fluxRequired_ = dict.subDict("fluxRequired"); // fluxRequired_ = dict.subDict("fluxRequired");
if // if
( // (
fluxRequired_.found("default") // fluxRequired_.found("default")
&& word(fluxRequired_.lookup("default")) != "none" // && word(fluxRequired_.lookup("default")) != "none"
) // )
{ // {
defaultFluxRequired_ = Switch(fluxRequired_.lookup("default")); // defaultFluxRequired_ = Switch(fluxRequired_.lookup("default"));
} // }
} // }
return true; return true;
} }