mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: trackedParticle: non-const access
This commit is contained in:
@ -169,7 +169,7 @@ void Foam::trackedParticle::hitProcessorPatch
|
|||||||
trackingData& td
|
trackingData& td
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// Remove particle
|
// Move to different processor
|
||||||
td.switchProcessor = true;
|
td.switchProcessor = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -163,12 +163,24 @@ public:
|
|||||||
return end_;
|
return end_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//- transported label
|
||||||
|
label i() const
|
||||||
|
{
|
||||||
|
return i_;
|
||||||
|
}
|
||||||
|
|
||||||
//- transported label
|
//- transported label
|
||||||
label& i()
|
label& i()
|
||||||
{
|
{
|
||||||
return i_;
|
return i_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//- transported label
|
||||||
|
label j() const
|
||||||
|
{
|
||||||
|
return j_;
|
||||||
|
}
|
||||||
|
|
||||||
//- transported label
|
//- transported label
|
||||||
label& j()
|
label& j()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user