Skip to content
Snippets Groups Projects
Commit 4f7d70ef authored by andy's avatar andy
Browse files

ENH: pressureTools - updated so that (reference) pressure field not necessary on construction

parent 5e50580e
No related branches found
No related tags found
No related merge requests found
......@@ -268,11 +268,9 @@ void Foam::pressureTools::read(const dictionary& dict)
dict.readIfPresent("UName", UName_);
dict.readIfPresent("rhoName", rhoName_);
const volScalarField& p = obr_.lookupObject<volScalarField>(pName_);
if (p.dimensions() != dimPressure)
if (rhoName_ == "rhoInf")
{
dict.lookup("rhoRef") >> rhoInf_;
dict.lookup("rhoInf") >> rhoInf_;
}
dict.lookup("calcTotal") >> calcTotal_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment