added non-const access to local density

This commit is contained in:
andy
2009-06-15 10:32:07 +01:00
parent eabf93a0cf
commit 4ed37b53b4
2 changed files with 10 additions and 1 deletions

View File

@ -70,4 +70,10 @@ Foam::tmp<Foam::volScalarField> Foam::basicRhoThermo::rho() const
}
Foam::volScalarField& Foam::basicRhoThermo::rho()
{
return rho_;
}
// ************************************************************************* //

View File

@ -46,7 +46,7 @@ namespace Foam
{
/*---------------------------------------------------------------------------*\
Class basicRhoThermo Declaration
Class basicRhoThermo Declaration
\*---------------------------------------------------------------------------*/
class basicRhoThermo
@ -106,6 +106,9 @@ public:
//- Density [kg/m^3]
virtual tmp<volScalarField> rho() const;
//- Return non-const access to the local density field [kg/m^3]
virtual volScalarField& rho();
};