Skip to content
Snippets Groups Projects
Commit 6bd1486a authored by mattijs's avatar mattijs
Browse files

ENH: solution: allow Function1 with database

parent 93f6cae4
Branches
Tags
1 merge request!695OpenFOAM v2406
......@@ -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;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment