Bugfix: do not read fluxRequired from dictionary
This commit is contained in:
parent
6653e9a5d4
commit
c373b855ba
1 changed files with 13 additions and 20 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue