Skip to content
Snippets Groups Projects
Commit 614b33f3 authored by sergio's avatar sergio
Browse files

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

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