ENH: solution: allow Function1 with database
This commit is contained in:
parent
93f6cae46a
commit
6bd1486a38
@ -106,7 +106,8 @@ void Foam::solution::read(const dictionary& dict)
|
||||
fieldRelaxDefault_ = Function1<scalar>::NewIfPresent
|
||||
(
|
||||
"default",
|
||||
fieldRelaxDict_
|
||||
fieldRelaxDict_,
|
||||
&db()
|
||||
);
|
||||
if (!fieldRelaxDefault_)
|
||||
{
|
||||
@ -119,7 +120,8 @@ void Foam::solution::read(const dictionary& dict)
|
||||
eqnRelaxDefault_ = Function1<scalar>::NewIfPresent
|
||||
(
|
||||
"default",
|
||||
eqnRelaxDict_
|
||||
eqnRelaxDict_,
|
||||
&db()
|
||||
);
|
||||
if (!eqnRelaxDefault_)
|
||||
{
|
||||
@ -341,7 +343,8 @@ bool Foam::solution::relaxField(const word& name, scalar& factor) const
|
||||
fieldRelaxCache_, // cache
|
||||
name,
|
||||
fieldRelaxDict_,
|
||||
keyType::REGEX
|
||||
keyType::REGEX,
|
||||
&db()
|
||||
)().value(time().timeOutputValue());
|
||||
|
||||
return true;
|
||||
@ -368,7 +371,8 @@ bool Foam::solution::relaxEquation(const word& name, scalar& factor) const
|
||||
eqnRelaxCache_, // cache
|
||||
name,
|
||||
eqnRelaxDict_,
|
||||
keyType::REGEX
|
||||
keyType::REGEX,
|
||||
&db()
|
||||
)().value(time().timeOutputValue());
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user