ENH: Added non-const access to pc

This commit is contained in:
andy
2011-05-27 11:20:00 +01:00
parent 1e6eb893ff
commit f7aa88bae2
2 changed files with 10 additions and 0 deletions

View File

@ -347,6 +347,9 @@ public:
//- Return the owner cell pressure //- Return the owner cell pressure
inline scalar pc() const; inline scalar pc() const;
//- Return reference to the owner cell pressure
inline scalar& pc();
// Edit // Edit

View File

@ -237,6 +237,13 @@ inline Foam::scalar Foam::ReactingParcel<ParcelType>::pc() const
} }
template<class ParcelType>
inline Foam::scalar& Foam::ReactingParcel<ParcelType>::pc()
{
return pc_;
}
template<class ParcelType> template<class ParcelType>
inline Foam::scalar& Foam::ReactingParcel<ParcelType>::mass0() inline Foam::scalar& Foam::ReactingParcel<ParcelType>::mass0()
{ {