Commit 614b33f3 authored by sergio's avatar sergio
Browse files

pRef is not required (default 0.0) when calcTotal flag is true.

parent 6ff341b5
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. \\/ M anipulation | Copyright (C) 2016-2017 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -249,7 +249,7 @@ bool Foam::functionObjects::pressure::read(const dictionary& dict) ...@@ -249,7 +249,7 @@ bool Foam::functionObjects::pressure::read(const dictionary& dict)
dict.lookup("calcTotal") >> calcTotal_; dict.lookup("calcTotal") >> calcTotal_;
if (calcTotal_) if (calcTotal_)
{ {
dict.lookup("pRef") >> pRef_; pRef_ = dict.lookupOrDefault<scalar>("pRef", 0.0);
} }
dict.lookup("calcCoeff") >> calcCoeff_; dict.lookup("calcCoeff") >> calcCoeff_;
......
Markdown is supported
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