ENH: pressureTools: use user-pressure name when constructing output field name

This commit is contained in:
andy
2013-03-18 12:21:42 +00:00
parent 2d986f8028
commit c6ae6599b1

View File

@ -2,7 +2,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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -39,7 +39,7 @@ defineTypeNameAndDebug(pressureTools, 0);
Foam::word Foam::pressureTools::pName() const Foam::word Foam::pressureTools::pName() const
{ {
word fieldName = "p"; word fieldName = pName_;
if (calcTotal_) if (calcTotal_)
{ {