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",
|
||||
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;
|
||||
}
|
||||
|
|
Reference in a new issue