ENH: trackedParticle: non-const access

This commit is contained in:
mattijs
2013-10-07 16:48:03 +01:00
parent 85437cf475
commit 48766b1bfd
2 changed files with 14 additions and 2 deletions

View File

@ -169,7 +169,7 @@ void Foam::trackedParticle::hitProcessorPatch
trackingData& td
)
{
// Remove particle
// Move to different processor
td.switchProcessor = true;
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -163,12 +163,24 @@ public:
return end_;
}
//- transported label
label i() const
{
return i_;
}
//- transported label
label& i()
{
return i_;
}
//- transported label
label j() const
{
return j_;
}
//- transported label
label& j()
{