Skip to content
Snippets Groups Projects
Commit 4ed37b53 authored by Andrew Heather's avatar Andrew Heather
Browse files

added non-const access to local density

parent eabf93a0
Branches
Tags
No related merge requests found
......@@ -70,4 +70,10 @@ Foam::tmp<Foam::volScalarField> Foam::basicRhoThermo::rho() const
}
Foam::volScalarField& Foam::basicRhoThermo::rho()
{
return rho_;
}
// ************************************************************************* //
......@@ -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();
};
......
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