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",
tokenList()
),
fluxRequired_
(
ITstream
(
objectPath() + "::fluxRequired",
tokenList()
)()
),
fluxRequired_(), // Do not read flux required option
defaultFluxRequired_(false)
{
if (!headerOk())
@ -386,19 +379,19 @@ bool Foam::fvSchemes::read()
}
if (dict.found("fluxRequired"))
{
fluxRequired_ = dict.subDict("fluxRequired");
// if (dict.found("fluxRequired"))
// {
// fluxRequired_ = dict.subDict("fluxRequired");
if
(
fluxRequired_.found("default")
&& word(fluxRequired_.lookup("default")) != "none"
)
{
defaultFluxRequired_ = Switch(fluxRequired_.lookup("default"));
}
}
// if
// (
// fluxRequired_.found("default")
// && word(fluxRequired_.lookup("default")) != "none"
// )
// {
// defaultFluxRequired_ = Switch(fluxRequired_.lookup("default"));
// }
// }
return true;
}