mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Added non-const access to pc
This commit is contained in:
@ -347,6 +347,9 @@ public:
|
||||
//- Return the owner cell pressure
|
||||
inline scalar pc() const;
|
||||
|
||||
//- Return reference to the owner cell pressure
|
||||
inline scalar& pc();
|
||||
|
||||
|
||||
// Edit
|
||||
|
||||
|
||||
@ -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>
|
||||
inline Foam::scalar& Foam::ReactingParcel<ParcelType>::mass0()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user