Commit 0647c7df authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: Added write access to particle origId and origProc

parent 8b20d01a
......@@ -517,12 +517,18 @@ public:
//- Return the fraction of time-step completed
inline scalar stepFraction() const;
//- Return the originating processor id
//- Return const access to the originating processor id
inline label origProc() const;
//- Return the particle id on originating processor
//- Return the originating processor id for manipulation
inline label& origProc();
//- Return const access to the particle id on originating processor
inline label origId() const;
//- Return the particle id on originating processor for manipulation
inline label& origId();
// Track
......
......@@ -1117,6 +1117,13 @@ inline Foam::label Foam::Particle<ParticleType>::origProc() const
}
template<class ParticleType>
inline Foam::label& Foam::Particle<ParticleType>::origProc()
{
return origProc_;
}
template<class ParticleType>
inline Foam::label Foam::Particle<ParticleType>::origId() const
{
......@@ -1124,6 +1131,13 @@ inline Foam::label Foam::Particle<ParticleType>::origId() const
}
template<class ParticleType>
inline Foam::label& Foam::Particle<ParticleType>::origId()
{
return origId_;
}
template<class ParticleType>
inline bool Foam::Particle<ParticleType>::softImpact() const
{
......
Markdown is supported
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