Skip to content

Commit

Permalink
Function1::Constant: Corrected backward-compatibility support
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Weller committed Jul 9, 2021
1 parent cfd11c0 commit 52ec3c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
Expand Down Expand Up @@ -49,7 +49,7 @@ Foam::Function1s::Constant<Type>::Constant
FieldFunction1<Type, Constant<Type>>(name),
value_(Zero)
{
if (!dict.found(name))
if (name == "value" || !dict.found(name))
{
dict.lookup("value") >> value_;
}
Expand Down

0 comments on commit 52ec3c0

Please sign in to comment.